Index: /trunk/psLib/src/sys/psTrace.c
===================================================================
--- /trunk/psLib/src/sys/psTrace.c	(revision 8243)
+++ /trunk/psLib/src/sys/psTrace.c	(revision 8244)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-08 23:32:23 $
+ *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-09 02:01:02 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -615,13 +615,22 @@
  null
  *****************************************************************************/
-void p_psTrace(const char *comp,        // component being traced
-               int level,               // desired trace level
-               const char *format,
-               ...)                     // arguments
-{
+void p_psTrace(
+    const char* file,                  ///< file name
+    int lineno,                        ///< line number in file
+    const char* func,                  ///< function name
+    const char *facil,                 ///< facilty of interest
+    psS32 level,                       ///< desired trace level
+    const char *format,                ///< printf-style format command
+    ...                                ///< trace message arguments
+)
+{
+    // XXX file & lineo are currently unused
     va_list ap;
     va_start(ap, format);
     //    format = va_arg(ap, char *);
-    psTraceV(comp, level, format, ap);
+    psString fullFacil = NULL;
+    psStringAppend(&fullFacil, "%s.%s", facil, func);
+    psTraceV(fullFacil, level, format, ap);
+    psFree(fullFacil);
     va_end(ap);
     // fflush(traceFP);
Index: /trunk/psLib/src/sys/psTrace.h
===================================================================
--- /trunk/psLib/src/sys/psTrace.h	(revision 8243)
+++ /trunk/psLib/src/sys/psTrace.h	(revision 8244)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-12 02:54:01 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-09 02:01:02 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -91,6 +91,9 @@
 /// Send a trace message
 void p_psTrace(
+    const char* file,                  ///< file name
+    int lineno,                        ///< line number in file
+    const char* func,                  ///< function name
     const char *facil,                 ///< facilty of interest
-    psS32 myLevel,                     ///< desired trace level
+    psS32 level,                       ///< desired trace level
     const char *format,                ///< printf-style format command
     ...                                ///< trace message arguments
@@ -98,5 +101,5 @@
 
 #ifndef SWIG
-#define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
+#define psTrace(facil, level, ...) p_psTrace(__FILE__,__LINE__,__func__,facil, level, __VA_ARGS__)
 /** Sends a trace message. */
 void psTraceV(
@@ -128,5 +131,5 @@
 );
 
-/// Set all trace levels to zero (do not free nodes in the component tree).
+/// Set all trace levels to zero (do not free nodes in the facility tree).
 void psTraceReset();
 
