IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2006, 6:34:28 PM (20 years ago)
Author:
jhoblitt
Message:

add gcc format attributes to:

psAbort()
psErrorStackPrint()
p_psError()
p_psWarning()
psLogMsg()
p_psTrace()

add PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL
add PS_ASSERT_S64_WITHIN_RANGE
fix PS_ASSERT_LONG_WITHIN_RANGE
fix a wide range of format related issues:

  • missing format field specifiers
  • missing format args
  • incorrect format field specifiers
  • constants declared with the wrong type (float vs. int)
  • PS_ASSERT* for the wrong type
  • attemps to print structs with *printf()
  • unportable format specifiers, eg. long vs. long long
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMatrix.c

    r8245 r8627  
    2121 *  @author Robert DeSonia, MHPCC
    2222 *
    23  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    24  *  @date $Date: 2006-08-09 02:26:44 $
     23 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     24 *  @date $Date: 2006-08-26 04:34:28 $
    2525 *
    2626 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    675675        if (outVector->n != inImage->numRows) {
    676676            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    677                     "Image and vector sizes differ: (%d vs %d).",
     677                    "Image and vector sizes differ: (%d vs %ld).",
    678678                    inImage->numRows, outVector->n);
    679679            psMatrixToVector_EXIT;
     
    691691        if (outVector->n != inImage->numCols) {
    692692            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    693                     "Image and vector sizes differ: (%d vs %d).",
     693                    "Image and vector sizes differ: (%d vs %ld).",
    694694                    inImage->numCols, outVector->n);
    695695            psMatrixToVector_EXIT;
     
    727727        } else if (outImage->numRows != inVector->n) {
    728728            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    729                     "Image and vector sizes differ: (%d vs %d).",
     729                    "Image and vector sizes differ: (%d vs %ld).",
    730730                    outImage->numRows, inVector->n);
    731731            VECTORTOMATRIX_CLEANUP;
     
    746746        } else if (outImage->numCols != inVector->n) {
    747747            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    748                     "Image and vector sizes differ: (%d vs %d).",
     748                    "Image and vector sizes differ: (%d vs %ld).",
    749749                    outImage->numCols, inVector->n);
    750750            VECTORTOMATRIX_CLEANUP;
Note: See TracChangeset for help on using the changeset viewer.