Changeset 384936 in git for omalloc/omDebugCheck.c
- Timestamp:
- Oct 27, 2000, 5:28:53 PM (24 years ago)
- Branches:
- (u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
- Children:
- 4e6cf23c897eda44f90c0bfcc95f67254c769fc6
- Parents:
- beb237cc73d8105ee6170e824d4fd35c9a68218f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omDebugCheck.c
rbeb237 r384936 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omDebugCheck.c,v 1. 9 2000-10-04 13:12:30obachman Exp $6 * Version: $Id: omDebugCheck.c,v 1.10 2000-10-27 15:28:51 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <limits.h> … … 423 423 if (! omCheckPtr(addr, omError_MaxError, OM_FLR)) 424 424 { 425 fprintf(fd, "%s addr:%p size:% d", s, addr, omSizeOfAddr(addr));425 fprintf(fd, "%s addr:%p size:%ld", s, addr, omSizeOfAddr(addr)); 426 426 427 427 if (error == omError_WrongSize && (flags & OM_FSIZE)) 428 fprintf(fd, " specified size:% d", (size_t) bin_size);428 fprintf(fd, " specified size:%ld", (size_t) bin_size); 429 429 430 430 if (error == omError_WrongBin && (flags & OM_FBIN)) 431 fprintf(fd, " specified bin is of size:% d", ((omBin) bin_size)->sizeW << LOG_SIZEOF_LONG);431 fprintf(fd, " specified bin is of size:%ld", ((omBin) bin_size)->sizeW << LOG_SIZEOF_LONG); 432 432 433 433 if (omIsTrackAddr(addr)) … … 536 536 static FILE* om_print_used_addr_fd; 537 537 static size_t om_total_used_size; 538 static unsigned intom_total_used_blocks;538 static unsigned long om_total_used_blocks; 539 539 static int om_print_frames; 540 540 … … 560 560 om_print_frames = max; 561 561 omIterateTroughAddrs(1, 1, _omPrintUsedAddr, NULL); 562 fprintf(fd, "UsedAddrs Summary: UsedBlocks:% d TotalSize:%d\n",562 fprintf(fd, "UsedAddrs Summary: UsedBlocks:%ld TotalSize:%ld\n", 563 563 om_total_used_blocks, om_total_used_size); 564 564 } … … 571 571 om_print_frames = max; 572 572 omIterateTroughAddrs(0, 1 , _omPrintUsedAddr, NULL); 573 fprintf(fd, "UsedTrackAddrs Summary: UsedBlocks:% d TotalSize:%d\n",573 fprintf(fd, "UsedTrackAddrs Summary: UsedBlocks:%ld TotalSize:%ld\n", 574 574 om_total_used_blocks, om_total_used_size); 575 575 }
Note: See TracChangeset
for help on using the changeset viewer.