From 82915e16f119cfd64c361ba7079299186611bf89 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 19 Feb 2009 18:51:38 +0100 Subject: [PATCH] Logging: Fixed formatting when we have neither log_title nor log_pid. --- ucw/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucw/log.c b/ucw/log.c index 411a1068..0810451b 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -255,7 +255,7 @@ log_pass_msg(int depth, struct log_stream *ls, struct log_msg *m) } else { - if (ls->msgfmt & LSFMT_PID) + if ((ls->msgfmt & LSFMT_PID) && log_pid) p += sprintf(p, "[%d] ", log_pid); } -- 2.39.2