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/sys/psAbort.h

    r4307 r8627  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-17 23:39:51 $
     14 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-08-26 04:34:28 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3737 *
    3838 */
     39#ifdef __GNUC__
     40void psAbort(
     41    const char *name,                  ///< Source of abort such as file or function detected
     42    const char *format,                   ///< A printf style formatting statement defining msg
     43    ...
     44) __attribute__((format(printf, 2, 3)));
     45#else // __GNUC__
    3946void psAbort(
    4047    const char *name,                  ///< Source of abort such as file or function detected
     
    4249    ...
    4350);
     51#endif // __GNUC__
    4452
    4553/** @} */ // Doxygen - End of SystemGroup Functions
Note: See TracChangeset for help on using the changeset viewer.