Index: trunk/psLib/src/sys/psTrace.c
===================================================================
--- trunk/psLib/src/sys/psTrace.c	(revision 8413)
+++ trunk/psLib/src/sys/psTrace.c	(revision 8416)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-17 23:05:23 $
+ *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-18 02:24:13 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -53,4 +53,6 @@
 #include <string.h>
 #include <stdarg.h>
+
+#include "psAssert.h"
 #include "psMemory.h"
 #include "psTrace.h"
@@ -77,4 +79,6 @@
 static p_psComponent* componentAlloc(const char *name, int level)
 {
+    assert(name);
+
     p_psComponent* comp = psAlloc(sizeof(p_psComponent));
 
@@ -130,4 +134,6 @@
 void p_psTraceReset(p_psComponent* currentNode)
 {
+    assert(currentNode);
+
     psS32 i = 0;
 
@@ -163,4 +169,6 @@
 static psBool componentAdd(const char *addNodeName, psS32 level)
 {
+    assert(addNodeName);
+
     psS32 i = 0;                        // Loop index variable.
     char name[strlen(addNodeName) + 1]; // buffer for writeable copy.
@@ -262,4 +270,6 @@
                     int level)  // desired trace level
 {
+    PS_ASSERT_PTR_NON_NULL(comp, 0);
+
     char *compName = NULL;
     int prevLevel = -1;
@@ -322,4 +332,5 @@
 static psS32 doGetTraceLevel(const char *aname)
 {
+    assert(aname);
     char name[strlen(aname) + 1];       // need a writeable copy: for strsep()
     char *pname = name;
@@ -393,4 +404,6 @@
 int psTraceGetLevel(const char *name)
 {
+    PS_ASSERT_PTR_NON_NULL(name, 0);
+
     psS32 traceLevel;
 
@@ -452,4 +465,6 @@
                                psS32 defLevel)
 {
+    assert(comp);
+
     char line[1024];
     psS32 i = 0;
@@ -644,4 +659,9 @@
 )
 {
+    PS_ASSERT_PTR_NON_NULL(file, );
+    PS_ASSERT_PTR_NON_NULL(func, );
+    PS_ASSERT_PTR_NON_NULL(facil, );
+    PS_ASSERT_PTR_NON_NULL(format, );
+
     // XXX file & lineo are currently unused
     va_list ap;
