Index: /branches/eam_branches/ipp-20101205/psLib/src/sys/psLogMsg.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psLib/src/sys/psLogMsg.c	(revision 30081)
+++ /branches/eam_branches/ipp-20101205/psLib/src/sys/psLogMsg.c	(revision 30082)
@@ -310,12 +310,14 @@
             *head_ptr++ = '|';
         }
-        maxLength -= snprintf(head_ptr, maxLength, "%s", name);
+        maxLength -= snprintf(head_ptr, maxLength, "%s\n", name);
 
         head_ptr += strlen(head_ptr);
     }
-
     if (head_ptr > head) {
-        *head_ptr++ = '\n';
-    } else if (!logMsg) {                  // no output desired
+	*head_ptr++ = '|';
+    }
+
+    // XXX rather than putting in a return for the message, let's only put in the return if we asked for the function name
+    if ((head_ptr == head) && !logMsg) { // no output desired
         return;
     }
@@ -332,5 +334,5 @@
         char *line = strtok_r(msg, "\n", &msgPtr);
         while (line) {
-            if(write(logFD, "    ", 4)) {;} // ignore return value
+            if(write(logFD, "          ", PS_MIN(level, 10))) {;} // ignore return value
             if(write(logFD, line, strlen(line))) {;} // ignore return value
             if(write(logFD, "\n", 1)) {;} // ignore return value
