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/detrend
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmFlatNormalize.c

    r8397 r8669  
    2828        if (*expFluxesPtr) {
    2929            PS_ASSERT_VECTOR_TYPE(*expFluxesPtr, PS_TYPE_F32, false);
    30             PS_ASSERT_VECTOR_SIZE(*expFluxesPtr, numExps, false);
     30            PS_ASSERT_VECTOR_SIZE(*expFluxesPtr, (long)numExps, false);
    3131        } else {
    3232            *expFluxesPtr = psVectorAlloc(numExps, PS_TYPE_F32);
     
    4343        if (*chipGainsPtr) {
    4444            PS_ASSERT_VECTOR_TYPE(*chipGainsPtr, PS_TYPE_F32, false);
    45             PS_ASSERT_VECTOR_SIZE(*chipGainsPtr, numChips, false);
     45            PS_ASSERT_VECTOR_SIZE(*chipGainsPtr, (long)numChips, false);
    4646        } else {
    4747            *chipGainsPtr = psVectorAlloc(numChips, PS_TYPE_F32);
  • trunk/psModules/src/detrend/pmFringeStats.c

    r8246 r8669  
    33 *  @author Eugene Magnier, IfA
    44 *
    5  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-08-09 02:37:07 $
     5 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-08-29 21:39:44 $
    77 *
    88 *  Copyright 2004 IfA
     
    115115    PS_ASSERT_VECTOR_TYPE(x, PS_TYPE_F32, false);
    116116    PS_ASSERT_VECTOR_TYPE(y, PS_TYPE_F32, false);
    117     PS_ASSERT_VECTOR_SIZE(x, numRows, false);
    118     PS_ASSERT_VECTOR_SIZE(y, numRows, false);
     117    PS_ASSERT_VECTOR_SIZE(x, (long)numRows, false);
     118    PS_ASSERT_VECTOR_SIZE(y, (long)numRows, false);
    119119    if (mask) {
    120120        PS_ASSERT_VECTOR_NON_NULL(mask, false);
    121121        PS_ASSERT_VECTOR_TYPE(mask, PS_TYPE_U8, false);
    122         PS_ASSERT_VECTOR_SIZE(mask, numRows, false);
     122        PS_ASSERT_VECTOR_SIZE(mask, (long)numRows, false);
    123123    }
    124124
     
    356356    PS_ASSERT_VECTOR_TYPE(f, PS_TYPE_F32, false);
    357357    PS_ASSERT_VECTOR_TYPE(df, PS_TYPE_F32, false);
    358     PS_ASSERT_VECTOR_SIZE(f, numRows, false);
    359     PS_ASSERT_VECTOR_SIZE(df, numRows, false);
     358    PS_ASSERT_VECTOR_SIZE(f, (long)numRows, false);
     359    PS_ASSERT_VECTOR_SIZE(df, (long)numRows, false);
    360360
    361361    // We need to write:
     
    388388    PS_ASSERT_INT_POSITIVE(regions->nRequested, NULL);
    389389    PS_ASSERT_VECTORS_SIZE_EQUAL(regions->x, regions->y, NULL);
    390     PS_ASSERT_VECTOR_SIZE(regions->x, regions->nRequested, NULL);
     390    PS_ASSERT_VECTOR_SIZE(regions->x, (long)regions->nRequested, NULL);
    391391
    392392    if (extname && strlen(extname) > 0) {
  • trunk/psModules/src/detrend/pmNonLinear.c

    r7604 r8669  
    1010 *  @author GLG, MHPCC
    1111 *
    12  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-06-21 03:21:16 $
     12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-29 21:39:44 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8080        tableSize = PS_MIN(inFlux->n, outFlux->n);
    8181        psLogMsg(__func__, PS_LOG_WARN,
    82                  "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%d, %d)\n", inFlux->n, outFlux->n);
     82                 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%ld, %ld)\n", inFlux->n, outFlux->n);
    8383    }
    8484    PS_ASSERT_VECTOR_TYPE(inFlux, PS_TYPE_F32, NULL);
  • trunk/psModules/src/detrend/pmSubtractBias.c

    r8246 r8669  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-08-09 02:37:07 $
     13 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-08-29 21:39:44 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    288288        psStatsOptions statistic = psStatsSingleOption(overscanOpts->stat->options); // Statistic to use
    289289        if (statistic == 0) {
    290             psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Multiple or no statistics options set: %x\n",
     290            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Multiple or no statistics options set: %p\n",
    291291                    overscanOpts->stat);
    292292            return false;
Note: See TracChangeset for help on using the changeset viewer.