IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 4:01:02 PM (20 years ago)
Author:
jhoblitt
Message:

change psTrace() to include FILE, LINE, & func
change p_psTrace() to accept file, line, & function arguments
change p_psTrace() to concatenate the calling function name to the end of the facility name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psTrace.h

    r7866 r8244  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-07-12 02:54:01 $
     11 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-08-09 02:01:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9191/// Send a trace message
    9292void p_psTrace(
     93    const char* file,                  ///< file name
     94    int lineno,                        ///< line number in file
     95    const char* func,                  ///< function name
    9396    const char *facil,                 ///< facilty of interest
    94     psS32 myLevel,                     ///< desired trace level
     97    psS32 level,                       ///< desired trace level
    9598    const char *format,                ///< printf-style format command
    9699    ...                                ///< trace message arguments
     
    98101
    99102#ifndef SWIG
    100 #define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
     103#define psTrace(facil, level, ...) p_psTrace(__FILE__,__LINE__,__func__,facil, level, __VA_ARGS__)
    101104/** Sends a trace message. */
    102105void psTraceV(
     
    128131);
    129132
    130 /// Set all trace levels to zero (do not free nodes in the component tree).
     133/// Set all trace levels to zero (do not free nodes in the facility tree).
    131134void psTraceReset();
    132135
Note: See TracChangeset for help on using the changeset viewer.