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/fits/psFitsImage.c

    r8412 r8627  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-08-17 22:15:17 $
     9 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-08-26 04:34:28 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    450450    if (z >= nAxes[2]) {
    451451        psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    452                 _("Current FITS HDU has %d z-planes, but z-plane %d was specified."),
    453                 nAxes[2],z);
     452                _("Current FITS HDU has %ld z-planes, but z-plane %d was specified."),
     453                nAxes[2], z);
    454454        return false;
    455455    }
     
    472472            lastPixel[1] < 1 || lastPixel[1] > nAxes[1]) {
    473473        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    474                 "Input image [size of %ix%i] at position (%i,%i) does not all lay in the %ix%i FITS image.",
     474                "Input image [size of %ix%i] at position (%i,%i) does not all lay in the %lix%li FITS image.",
    475475                numCols, numRows,
    476476                x0, y0,
Note: See TracChangeset for help on using the changeset viewer.