Index: trunk/psLib/src/sysUtils/psLogMsg.c
===================================================================
--- trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1716)
+++ trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1731)
@@ -12,6 +12,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-08 00:19:21 $
+ *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-08 21:22:47 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -42,5 +42,4 @@
 
 #include "psSysUtilsErrors.h"
-#define ERRORNAME_PREFIX PS_ERRORNAME_DOMAIN ".psLogMsg."
 
 #define MIN_LOG_LEVEL 0
@@ -113,5 +112,5 @@
 
     if (sscanf(dest, "%4s:%256s", protocol, location) < 2) {
-        psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
+        psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
                    PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED,
                    dest);
@@ -134,5 +133,5 @@
             return true;
         }
-        psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
+        psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
                    PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID,
                    location);
@@ -142,5 +141,5 @@
 
         if (file == NULL) {
-            psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_IO,
+            psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_IO,
                        PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED,
                        location);
@@ -154,5 +153,5 @@
     }
 
-    psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
+    psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
                PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL,
                protocol);
@@ -218,5 +217,5 @@
             break;
         default:
-            psErrorMsg(ERRORNAME_PREFIX "psLogSetFormat", true, PS_ERR_BAD_PARAMETER_VALUE,
+            psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetFormat", true, PS_ERR_BAD_PARAMETER_VALUE,
                        PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);
             break;
@@ -333,5 +332,10 @@
             *head_ptr++ = '|';
         }
-        maxLength -= snprintf(head_ptr, maxLength, "%15.15s", name);
+        if (strlen(name) > 15) {
+            maxLength -= snprintf(head_ptr, maxLength, "+%14.14s", &name[strlen(name)-14]);
+        } else {
+            maxLength -= snprintf(head_ptr, maxLength, "%15.15s", name);
+        }
+
         head_ptr += strlen(head_ptr);
     }
