Changeset 657747 in git
- Timestamp:
- Jan 7, 2011, 4:00:59 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- afc913d3bf15e0e109b09ee2e7c9c088088429ce
- Parents:
- e961ee49ffe19b2ceb5ebbde55790cf01100a939
- Location:
- omalloc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omBin.c
re961ee4 r657747 671 671 (omIsStickyBin(bin) ? "S" : 672 672 (omIsTrackBin(bin) ? "T" : "*"))), 673 bin->sizeW, bin->max_blocks);673 (long)bin->sizeW, bin->max_blocks); 674 674 } 675 675 omGetTotalBinStat(bin, pages, used_blocks, free_blocks); -
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 */ -
omalloc/omTables.c
re961ee4 r657747 68 68 long i, j; 69 69 printf("omBin om_Size2%sBin[/*%ld*/] = {\n", 70 (track? "Track" : ""), max_block_size / SIZEOF_OM_ALIGNMENT);70 (track? "Track" : ""), (long)(max_block_size / SIZEOF_OM_ALIGNMENT)); 71 71 i=0; 72 72 j=SIZEOF_OM_ALIGNMENT; … … 89 89 } 90 90 printf("omBin om_Size2%sBin[/*%ld*/] = {\n", 91 (track ? "Track" : "Aligned"), max_block_size / SIZEOF_OM_ALIGNMENT);91 (track ? "Track" : "Aligned"), (long)(max_block_size / SIZEOF_OM_ALIGNMENT)); 92 92 i=0; 93 93 while (binSize[i] % SIZEOF_STRICT_ALIGNMENT != 0) i++; … … 114 114 { 115 115 printf("{om_ZeroPage, NULL, NULL, %ld, %ld, 0},\n", 116 binSize[i] / SIZEOF_LONG,117 SIZEOF_OM_BIN_PAGE/binSize[i]);116 (long)(binSize[i] / SIZEOF_LONG), 117 (long)(SIZEOF_OM_BIN_PAGE/binSize[i])); 118 118 } 119 119 printf("{om_ZeroPage, NULL, NULL, %ld, %ld, 0}\n};\n\n", 120 binSize[i] / SIZEOF_LONG,121 SIZEOF_OM_BIN_PAGE/binSize[i]);120 (long)(binSize[i] / SIZEOF_LONG), 121 (long)(SIZEOF_OM_BIN_PAGE/binSize[i])); 122 122 } 123 123
Note: See TracChangeset
for help on using the changeset viewer.