Changeset 5112
- Timestamp:
- Sep 23, 2005, 11:57:12 AM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 edited
-
src/sys/psTrace.c (modified) (2 diffs)
-
test/sys/tst_psTrace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psTrace.c
r5071 r5112 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 59$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09-2 0 00:31:22 $11 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-23 21:57:12 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 657 657 va_list ap; 658 658 va_start(ap, format); 659 format = va_arg(ap, char *);659 // format = va_arg(ap, char *); 660 660 psTraceV(comp, level, format, ap); 661 661 va_end(ap); -
trunk/psLib/test/sys/tst_psTrace.c
r5071 r5112 103 103 (void)psTraceSetLevel(".A.B.C.D.E", 5); 104 104 105 psTrace(".A.C.D.C",1," ","You should not see this.\n");106 psTrace(".A.B.C.D.E",2," ","You should see this.\n");107 psTrace(".A.B.C.D.E.F",3," ","You should see this too.\n");105 psTrace(".A.C.D.C",1,"You should not see this.\n"); 106 psTrace(".A.B.C.D.E",2,"You should see this.\n"); 107 psTrace(".A.B.C.D.E.F",3,"You should see this too.\n"); 108 108 109 109 psTracePrintLevels(); … … 206 206 207 207 (void)psTraceSetLevel(".", 4); 208 psTrace(".", 5, " ", "(0) This message should not be displayed (%x)\n",208 psTrace(".", 5, "(0) This message should not be displayed (%x)\n", 209 209 0xbeefface); 210 210 (void)psTraceSetLevel(".", 7); 211 psTrace(".", 5, " ", "(0) This message should be displayed (%x)\n",211 psTrace(".", 5, "(0) This message should be displayed (%x)\n", 212 212 0xbeefface); 213 213 214 214 (void)psTraceSetLevel(".a", 4); 215 psTrace(".a", 5, " ", "(1) This message should not be displayed (%x)\n",215 psTrace(".a", 5, "(1) This message should not be displayed (%x)\n", 216 216 0xbeefface); 217 217 (void)psTraceSetLevel(".a", 7); 218 psTrace(".a", 5, " ", "(1) This message should be displayed (%x)\n",218 psTrace(".a", 5, "(1) This message should be displayed (%x)\n", 219 219 0xbeefface); 220 220 221 221 222 222 (void)psTraceSetLevel(".a.b", 4); 223 psTrace(".a.b", 5, " ", "(2) This message should not be displayed (%x)\n",223 psTrace(".a.b", 5, "(2) This message should not be displayed (%x)\n", 224 224 0xbeefface); 225 225 (void)psTraceSetLevel(".a.b", 7); 226 psTrace(".a.b", 5, " ", "(2) This message should be displayed (%x)\n",226 psTrace(".a.b", 5, "(2) This message should be displayed (%x)\n", 227 227 0xbeefface); 228 228
Note:
See TracChangeset
for help on using the changeset viewer.
