From 06460abd36fbf3887744bd09a516e590a6c3febb Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 27 Feb 2022 15:58:45 -0700 Subject: [PATCH] DtSvc/MsgLog.c: remove extra 'noise' around log events Previous: -=-=-=-= *** INFORMATION(0): dtwm: PID 1758056: Sun Feb 27 15:49:37 2022 Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font *** [142] -=-=-=-= New: -=-=-=-= *** INFORMATION(0): dtwm: PID 1758839: Sun Feb 27 15:54:09 2022 Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font [142 bytes] -=-=-=-= --- cde/lib/DtSvc/DtUtil2/MsgLog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cde/lib/DtSvc/DtUtil2/MsgLog.c b/cde/lib/DtSvc/DtUtil2/MsgLog.c index db50a1ac9..1547dc5ae 100644 --- a/cde/lib/DtSvc/DtUtil2/MsgLog.c +++ b/cde/lib/DtSvc/DtUtil2/MsgLog.c @@ -349,7 +349,7 @@ void DtMsgLogMessage ( (void) strftime (buf, MAX_DATE_TIME_STRING, - Dt11GETMESSAGE (48, 1, "%a %b %d %H:%M:%S %Y\n"), + Dt11GETMESSAGE (48, 1, "%a %b %d %H:%M:%S %Y\n"), current_time); num_bytes = fprintf (fp, "*** %s(%d): %s: PID %d: %s", @@ -380,7 +380,9 @@ void DtMsgLogMessage ( #endif va_end (args); - fprintf (fp, "\n*** [%d]\n\n", num_bytes); + // JET - extraneous noise, just output the count + // fprintf (fp, "\n*** [%d]\n\n", num_bytes); + fprintf (fp, "[%d bytes]\n\n", num_bytes); if (fp != stderr) { (void) fflush (fp);