IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8684


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

fix a wide range of format string errors

Location:
trunk/stac/src
Files:
3 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);
  • trunk/stac/src/stacRead.c

    r6887 r8684  
    2727        psFits *imageFile = psFitsOpen(filenames->data[i], "r");
    2828        if (!imageFile) {
    29             psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]);
     29            psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", (char *)filenames->data[i]);
    3030            exit(EXIT_FAILURE);
    3131        }
     
    3636        psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
    3737        if (image == NULL) {
    38             psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n",filenames->data[i]);
     38            psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n", (char *)filenames->data[i]);
    3939            exit(EXIT_FAILURE);
    4040        }
     
    190190    for (int i = 0; i < nFiles; i++) {
    191191        if (strlen(filenames->data[i]) > MAXCHAR - 4) {
    192             psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",filenames->data[i]);
     192            psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",(char *)filenames->data[i]);
    193193            exit(EXIT_FAILURE);
    194194        }
  • trunk/stac/src/sum.c

    r6887 r8684  
    3939        } else if (image->numCols != numCols || image->numRows != numRows) {
    4040            psError(PS_ERR_IO, true, "Input images have different dimensions.  %s is %dx%d, but should be "
    41                     "%dx%d\n", inputNames->data[i], image->numCols, image->numRows, numCols, numRows);
     41                    "%dx%d\n", (char *)inputNames->data[i], image->numCols, image->numRows, numCols, numRows);
    4242            return EXIT_FAILURE;
    4343        }
Note: See TracChangeset for help on using the changeset viewer.