From: Martin Mares Date: Thu, 19 Feb 2009 17:51:38 +0000 (+0100) Subject: Logging: Fixed formatting when we have neither log_title nor log_pid. X-Git-Tag: holmes-import~55 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=82915e16f119cfd64c361ba7079299186611bf89;p=libucw.git Logging: Fixed formatting when we have neither log_title nor log_pid. --- 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); }