Changeset 17447 for trunk/psLib/src/sys/psTrace.c
- Timestamp:
- Apr 17, 2008, 1:43:03 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psTrace.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psTrace.c
r12286 r17447 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 6$ $Name: not supported by cvs2svn $12 * @date $Date: 200 7-03-07 00:17:48$11 * @version $Revision: 1.87 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2008-04-17 23:43:02 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 52 52 #include <stdarg.h> 53 53 54 #include "psAbort.h" 54 55 #include "psAssert.h" 55 56 #include "psTrace.h" … … 83 84 static p_psComponent* componentAlloc(const char *name, int level) 84 85 { 85 assert(name);86 psAssert(name, "impossible"); 86 87 87 88 p_psComponent* comp = psAlloc(sizeof(p_psComponent)); … … 149 150 void p_psTraceReset(p_psComponent* currentNode) 150 151 { 151 assert(currentNode);152 psAssert(currentNode, "impossible"); 152 153 153 154 psS32 i = 0; … … 184 185 static bool componentAdd(const char *addNodeName, psS32 level) 185 186 { 186 assert(addNodeName);187 psAssert(addNodeName, "impossible"); 187 188 188 189 psS32 i = 0; // Loop index variable. … … 346 347 static psS32 doGetTraceLevel(const char *aname) 347 348 { 348 assert(aname);349 psAssert(aname, "impossible"); 349 350 char name[strlen(aname) + 1]; // need a writeable copy: for strsep() 350 351 char *pname = name; … … 472 473 psS32 defLevel) 473 474 { 474 assert(comp);475 psAssert(comp, "impossible"); 475 476 476 477 char line[1024];
Note:
See TracChangeset
for help on using the changeset viewer.
