Changeset 657747 in git


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
Location:
omalloc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omBin.c

    re961ee4 r657747  
    671671                                (omIsStickyBin(bin) ? "S" :
    672672                                 (omIsTrackBin(bin) ? "T" : "*"))),
    673             bin->sizeW, bin->max_blocks);
     673            (long)bin->sizeW, bin->max_blocks);
    674674  }
    675675  omGetTotalBinStat(bin, pages, used_blocks, free_blocks);
  • 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 */
  • omalloc/omTables.c

    re961ee4 r657747  
    6868  long i, j;
    6969  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));
    7171  i=0;
    7272  j=SIZEOF_OM_ALIGNMENT;
     
    8989  }
    9090  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));
    9292  i=0;
    9393  while (binSize[i] % SIZEOF_STRICT_ALIGNMENT != 0) i++;
     
    114114  {
    115115    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]));
    118118  }
    119119  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]));
    122122}
    123123
Note: See TracChangeset for help on using the changeset viewer.