1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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]

-=-=-=-=
This commit is contained in:
Jon Trulson 2022-02-27 15:58:45 -07:00
parent dcf499ded2
commit 06460abd36

View file

@ -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);