IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2006, 1:20:21 PM (20 years ago)
Author:
jhoblitt
Message:

fix a wide range of format string errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacCheckMemory.c

    r5745 r8684  
    1010{
    1111    psLogMsg("stac.memoryPrint", PS_LOG_INFO,
    12              "Memory block %d:\n"
     12             "Memory block %lu:\n"
    1313             "\tFile %s, line %d, size %d\n"
    14              "\tPosts: %x %x %x\n",
     14             "\tPosts: %p %p %p\n",
    1515             ptr->id, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
    1616             *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));
     
    2525{
    2626    psLogMsg("stac.checkMemory.corruption", PS_LOG_WARN,
    27              "Memory corruption detected in memBlock %d\n"
     27             "Memory corruption detected in memBlock %lu\n"
    2828             "\tFile %s, line %d, size %d\n"
    29              "\tPosts: %x %x %x\n",
     29             "\tPosts: %p %p %p\n",
    3030             ptr->id, file, lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
    3131             (ptr + 1 + ptr->userMemorySize));
     
    5252    for (int i = 0; i < nLeaks; i++) {
    5353        psLogMsg("stac.checkMemory.leaks", PS_LOG_WARN,
    54                  "Memory leak detection: memBlock %d\n"
     54                 "Memory leak detection: memBlock %lu\n"
    5555                 "\tFile %s, line %d, size %d\n",
    5656                 leaks[i]->id, leaks[i]->file, leaks[i]->lineno, leaks[i]->userMemorySize);
Note: See TracChangeset for help on using the changeset viewer.