Changeset 657747 in git for omalloc/omDebugCheck.c
- Timestamp:
- Jan 7, 2011, 4:00:59 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- afc913d3bf15e0e109b09ee2e7c9c088088429ce
- Parents:
- e961ee49ffe19b2ceb5ebbde55790cf01100a939
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omDebugCheck.c
re961ee4 r657747 424 424 if (! (x=omCheckPtr(addr, omError_MaxError, OM_FLR))) 425 425 { 426 fprintf(fd, "%s addr:%p size:%ld", s, addr, omSizeOfAddr(addr));426 fprintf(fd, "%s addr:%p size:%ld", s, addr, (long)omSizeOfAddr(addr)); 427 427 428 428 if (error == omError_WrongSize && (flags & OM_FSIZE)) 429 fprintf(fd, " specified size:%ld", ( size_t) bin_size);429 fprintf(fd, " specified size:%ld", (long) bin_size); 430 430 431 431 if (error == omError_WrongBin && (flags & OM_FBIN)) 432 fprintf(fd, " specified bin is of size:%ld", ((omBin) bin_size)->sizeW << LOG_SIZEOF_LONG); 432 fprintf(fd, " specified bin is of size:%ld", 433 (long)((omBin) bin_size)->sizeW << LOG_SIZEOF_LONG); 433 434 434 435 if (omIsTrackAddr(addr)) … … 563 564 omIterateTroughAddrs(1, 1, _omPrintUsedAddr, NULL); 564 565 fprintf(fd, "UsedAddrs Summary: UsedBlocks:%ld TotalSize:%ld\n", 565 om_total_used_blocks, om_total_used_size);566 om_total_used_blocks, (long)om_total_used_size); 566 567 } 567 568 … … 574 575 omIterateTroughAddrs(0, 1 , _omPrintUsedAddr, NULL); 575 576 fprintf(fd, "UsedTrackAddrs Summary: UsedBlocks:%ld TotalSize:%ld\n", 576 om_total_used_blocks, om_total_used_size);577 om_total_used_blocks, (long)om_total_used_size); 577 578 } 578 579 #endif /* ! OM_NDEBUG */
Note: See TracChangeset
for help on using the changeset viewer.