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/psTrace.h

    r8404 r8627  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-08-17 01:39:03 $
     11 *  @version $Revision: 1.50 $ $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
     
    8989);
    9090
    91 #else
     91#else // DOXYGEN
     92#ifdef __GNUC__
    9293/// Send a trace message
    9394void p_psTrace(
     
    99100    const char *format,                ///< printf-style format command
    100101    ...                                ///< trace message arguments
     102) __attribute__((format(printf, 6, 7)));
     103#else // __GNUC__
     104void p_psTrace(
     105    const char* file,                  ///< file name
     106    int lineno,                        ///< line number in file
     107    const char* func,                  ///< function name
     108    const char *facil,                 ///< facilty of interest
     109    psS32 level,                       ///< desired trace level
     110    const char *format,                ///< printf-style format command
     111    ...                                ///< trace message arguments
    101112);
    102 
     113#endif // __GNUC__
    103114#ifndef SWIG
    104115#define psTrace(facil, level, ...) p_psTrace(__FILE__,__LINE__,__func__,facil, level, __VA_ARGS__)
     
    110121    va_list ap                         ///< varargs argument list
    111122);
    112 
    113123#endif /* SWIG */
    114 
    115124#endif /* DOXYGEN */
    116125
Note: See TracChangeset for help on using the changeset viewer.