Changeset 2426
- Timestamp:
- Nov 24, 2004, 10:12:28 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 5 edited
-
src/sys/psTrace.c (modified) (3 diffs)
-
src/sys/psTrace.h (modified) (2 diffs)
-
src/sysUtils/psTrace.c (modified) (3 diffs)
-
src/sysUtils/psTrace.h (modified) (2 diffs)
-
test/sysUtils/verified/tst_psTrace.stderr (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psTrace.c
r2273 r2426 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11- 04 01:05:00$11 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-24 20:12:28 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 385 385 traceLevel = doGetTraceLevel(name); 386 386 } 387 388 // XXX: The default trace level is currently set at -1, which is not a 389 // valid trace level. This is convenient in determining whether or not 390 // a component should inherit the trace level from parent nodes. However, 391 // it's not clear that -1 should ever be returned by this function. 392 // The SDR is unclear on this point and we should probably request IfA 393 // comment. 394 if (traceLevel == PS_DEFAULT_TRACE_LEVEL) { 395 traceLevel = PS_THE_OTHER_DEFAULT_TRACE_LEVEL; 396 } 397 387 398 return(traceLevel); 388 399 } … … 454 465 } 455 466 456 doPrintTraceLevels(cRoot, 0, PS_ DEFAULT_TRACE_LEVEL);467 doPrintTraceLevels(cRoot, 0, PS_THE_OTHER_DEFAULT_TRACE_LEVEL); 457 468 } 458 469 -
trunk/psLib/src/sys/psTrace.h
r2228 r2426 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-1 0-28 22:47:00$11 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-24 20:12:28 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 20 #define PS_DEFAULT_TRACE_LEVEL -1 21 #define PS_THE_OTHER_DEFAULT_TRACE_LEVEL 0 21 22 22 23 /** \addtogroup LogTrace -
trunk/psLib/src/sysUtils/psTrace.c
r2273 r2426 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11- 04 01:05:00$11 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-24 20:12:28 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 385 385 traceLevel = doGetTraceLevel(name); 386 386 } 387 388 // XXX: The default trace level is currently set at -1, which is not a 389 // valid trace level. This is convenient in determining whether or not 390 // a component should inherit the trace level from parent nodes. However, 391 // it's not clear that -1 should ever be returned by this function. 392 // The SDR is unclear on this point and we should probably request IfA 393 // comment. 394 if (traceLevel == PS_DEFAULT_TRACE_LEVEL) { 395 traceLevel = PS_THE_OTHER_DEFAULT_TRACE_LEVEL; 396 } 397 387 398 return(traceLevel); 388 399 } … … 454 465 } 455 466 456 doPrintTraceLevels(cRoot, 0, PS_ DEFAULT_TRACE_LEVEL);467 doPrintTraceLevels(cRoot, 0, PS_THE_OTHER_DEFAULT_TRACE_LEVEL); 457 468 } 458 469 -
trunk/psLib/src/sysUtils/psTrace.h
r2228 r2426 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-1 0-28 22:47:00$11 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-24 20:12:28 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 20 #define PS_DEFAULT_TRACE_LEVEL -1 21 #define PS_THE_OTHER_DEFAULT_TRACE_LEVEL 0 21 22 22 23 /** \addtogroup LogTrace -
trunk/psLib/test/sysUtils/verified/tst_psTrace.stderr
r2204 r2426 14 14 \**********************************************************************************/ 15 15 16 . -117 A -118 B -119 C -120 D -116 . 0 17 A 0 18 B 0 19 C 0 20 D 0 21 21 E 5 22 22 … … 29 29 \**********************************************************************************/ 30 30 31 . -132 A -131 . 0 32 A 0 33 33 B 2 34 34 C 2 35 35 D 2 36 36 E 5 37 . -138 A -137 . 0 38 A 0 39 39 B 10 40 40 C 10
Note:
See TracChangeset
for help on using the changeset viewer.
