IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2006, 11:39:44 AM (20 years ago)
Author:
jhoblitt
Message:

fix a wide range of format string errors

Location:
trunk/psModules/src/imcombine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmImageCombine.c

    r8246 r8669  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-08-09 02:37:07 $
     10 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-08-29 21:39:44 $
    1212 *
    1313 *  XXX: pmRejectPixels() has a known bug with the pmImageTransform() call.
     
    5050    PS_ASSERT_PTR_NON_NULL(images, combine);
    5151    psU32 numImages = images->n;
    52     psTrace("psModules.imcombine", 3, "Calling pmCombineImages(%d)\n", images->n);
     52    psTrace("psModules.imcombine", 3, "Calling pmCombineImages(%ld)\n", images->n);
    5353
    5454    if (errors != NULL) {
    5555        if (images->n != errors->n) {
    56             psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (%d != %d)\n",
     56            psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (%ld != %ld)\n",
    5757                    images->n, errors->n);
    5858            return(combine);
     
    6161    if (masks != NULL) {
    6262        if (images->n != masks->n) {
    63             psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (%d != %d)\n",
     63            psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (%ld != %ld)\n",
    6464                    images->n, masks->n);
    6565            return(combine);
     
    297297    psFree(qpPtr);
    298298
    299     psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(%d)\n", images->n);
     299    psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(%ld)\n", images->n);
    300300    return(combine);
    301301}
  • trunk/psModules/src/imcombine/pmImageSubtract.c

    r8246 r8669  
    77 *  @author GLG, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-08-09 02:37:07 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-08-29 21:39:44 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    191191    PS_ASSERT_VECTOR_NON_NULL(orders, NULL);
    192192    psTrace("psModules.imcombine", 3,
    193             "Calling pmSubtractionKernelsAllocISIS(%d, %d, %d, %d)\n",
     193            "Calling pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n",
    194194            sigmas->n, orders->n, size, spatialOrder);
    195195    PS_ASSERT_INT_POSITIVE(size, NULL);
     
    307307
    308308    psTrace("psModules.imcombine", 3,
    309             "Exiting pmSubtractionKernelsAllocISIS(%d, %d, %d, %d)\n",
     309            "Exiting pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n",
    310310            sigmas->n, orders->n, size, spatialOrder);
    311311    return(tmp);
     
    679679    }
    680680    psS32 nBF = kernels->u->n;
    681     PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);
     681    PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL);
    682682
    683683    psS32 numCols = input->numCols;
     
    826826            } else {
    827827                PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, false);
    828                 PS_ASSERT_VECTOR_SIZE(stampVector, numSolveParams, false);
     828                PS_ASSERT_VECTOR_SIZE(stampVector, (long)numSolveParams, false);
    829829            }
    830830            psVectorInit(stampVector, 0.0);
     
    10381038    if (solution != NULL) {
    10391039        PS_ASSERT_VECTOR_TYPE(solution, PS_TYPE_F64, NULL);
    1040         PS_ASSERT_VECTOR_SIZE(solution, size, NULL);
     1040        PS_ASSERT_VECTOR_SIZE(solution, (long)size, NULL);
    10411041    } else {
    10421042        solution = psVectorAlloc(size, PS_TYPE_F64);
     
    10701070            psVector *stampVector = stamp->vector;
    10711071            PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, NULL);
    1072             PS_ASSERT_VECTOR_SIZE(stampVector, size, NULL);
     1072            PS_ASSERT_VECTOR_SIZE(stampVector, (long)size, NULL);
    10731073            PS_ASSERT_IMAGE_TYPE(stampMatrix, PS_TYPE_F64, NULL);
    10741074            PS_ASSERT_IMAGE_SIZE(stampMatrix, size, size, NULL);
     
    11771177    }
    11781178    psS32 nBF = kernels->u->n;
    1179     PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);
     1179    PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL);
    11801180
    11811181    psS32 kernelSize = kernels->size;
     
    12691269
    12701270    psS32 nBF = kernels->u->n;
    1271     PS_ASSERT_VECTOR_SIZE(solution, nBF+1, false);
     1271    PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, false);
    12721272
    12731273    psVector *deviations = CalculateDeviations(NULL,
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r8246 r8669  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-08-09 02:37:07 $
     7 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-08-29 21:39:44 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    136136
    137137        if (!readout || !readout->image) {
    138             psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout %d is NULL or has NULL image.\n", i);
     138            psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout %ld is NULL or has NULL image.\n", i);
    139139            return false;
    140140        }
     
    151151        if (readout->weight) {
    152152            if (valid && !haveWeights) {
    153                 psLogMsg(__func__, PS_LOG_WARN, "Readout %d has a weight map, but others don't --- "
     153                psLogMsg(__func__, PS_LOG_WARN, "Readout %ld has a weight map, but others don't --- "
    154154                         "weights ignored.\n", i);
    155155            } else {
     
    157157            }
    158158        } else if (haveWeights) {
    159             psLogMsg(__func__, PS_LOG_WARN, "Readout %d doesn't have a weight map, but others do --- "
     159            psLogMsg(__func__, PS_LOG_WARN, "Readout %ld doesn't have a weight map, but others do --- "
    160160                     "weights ignored.\n", i);
    161161            haveWeights = false;
     
    168168        minInputCols = PS_MIN(minInputCols, readout->col0);
    169169        maxInputCols = PS_MAX(maxInputCols, readout->col0 + readout->image->numCols);
    170         psTrace("psModules.imcombine", 7, "Readout %d: offset %d,%d; size %dx%d\n", i,
     170        psTrace("psModules.imcombine", 7, "Readout %ld: offset %d,%d; size %dx%d\n", i,
    171171                readout->col0, readout->row0, readout->image->numCols, readout->image->numRows);
    172172    }
Note: See TracChangeset for help on using the changeset viewer.