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/imageops/psImageStats.c

    r8232 r8627  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-08-08 23:32:23 $
     11 *  @version $Revision: 1.100 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-08-26 04:34:28 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    592592        return -1;
    593593    }/* else if (col0 == col1 && row0 == row1) {
    594                                             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    595                                                     "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    596                                             return -1;
    597                                         }
    598                                     */
     594                                                psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     595                                                        "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     596                                                return -1;
     597                                            }
     598                                        */
    599599    x0 = col0;
    600600    x1 = col1;
     
    631631    case PS_TYPE_C64:
    632632    default:
     633        // XXX this should include the mask type (as a string)
    633634        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    634                 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), type, PS_TYPE_U8);
     635                _("Input psImage mask type is not a supported mask datatype"));
     636
    635637        return -1;
    636638    }
Note: See TracChangeset for help on using the changeset viewer.