Changeset 384936 in git for omalloc/omDebugCheck.c


Ignore:
Timestamp:
Oct 27, 2000, 5:28:53 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
4e6cf23c897eda44f90c0bfcc95f67254c769fc6
Parents:
beb237cc73d8105ee6170e824d4fd35c9a68218f
Message:
made 64 bit clean


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

Legend:

Unmodified
Added
Removed
  • omalloc/omDebugCheck.c

    rbeb237 r384936  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omDebugCheck.c,v 1.9 2000-10-04 13:12:30 obachman Exp $
     6 *  Version: $Id: omDebugCheck.c,v 1.10 2000-10-27 15:28:51 obachman Exp $
    77 *******************************************************************/
    88#include <limits.h>
     
    423423  if (! omCheckPtr(addr, omError_MaxError, OM_FLR))
    424424  {
    425     fprintf(fd, "%s addr:%p size:%d", s, addr, omSizeOfAddr(addr));
     425    fprintf(fd, "%s addr:%p size:%ld", s, addr, omSizeOfAddr(addr));
    426426 
    427427  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);
    429429 
    430430  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);
    432432 
    433433  if (omIsTrackAddr(addr))
     
    536536static FILE* om_print_used_addr_fd;
    537537static size_t om_total_used_size;
    538 static unsigned int om_total_used_blocks;
     538static unsigned long om_total_used_blocks;
    539539static int om_print_frames;
    540540
     
    560560  om_print_frames = max;
    561561  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",
    563563          om_total_used_blocks, om_total_used_size);
    564564}
     
    571571  om_print_frames = max;
    572572  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",
    574574          om_total_used_blocks, om_total_used_size);
    575575}
Note: See TracChangeset for help on using the changeset viewer.