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

    r7587 r8627  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-06-16 23:01:10 $
     13 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-08-26 04:34:28 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9090 *
    9191 */
     92#ifdef __GNUC__
     93void psLogMsg(
     94    const char *name,                  ///< name of the log source
     95    int level,                         ///< severity level of this log message
     96    const char *format,                ///< printf-style format command
     97    ...
     98) __attribute__((format(printf, 3, 4)));
     99#else // __GNUC__
    92100void psLogMsg(
    93101    const char *name,                  ///< name of the log source
     
    96104    ...
    97105);
     106#endif // __GNUC__
    98107
    99108#ifndef SWIG
Note: See TracChangeset for help on using the changeset viewer.