Changeset 657747 in git for omalloc/omDebugCheck.c


Ignore:
Timestamp:
Jan 7, 2011, 4:00:59 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
afc913d3bf15e0e109b09ee2e7c9c088088429ce
Parents:
e961ee49ffe19b2ceb5ebbde55790cf01100a939
Message:
fprintf fixes

git-svn-id: file:///usr/local/Singular/svn/trunk@13785 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omDebugCheck.c

    re961ee4 r657747  
    424424  if (! (x=omCheckPtr(addr, omError_MaxError, OM_FLR)))
    425425  {
    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));
    427427
    428428  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);
    430430
    431431  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);
    433434
    434435  if (omIsTrackAddr(addr))
     
    563564  omIterateTroughAddrs(1, 1, _omPrintUsedAddr, NULL);
    564565  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);
    566567}
    567568
     
    574575  omIterateTroughAddrs(0, 1 ,  _omPrintUsedAddr, NULL);
    575576  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);
    577578}
    578579#endif /* ! OM_NDEBUG */
Note: See TracChangeset for help on using the changeset viewer.