X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Flog.c;h=5c4a006982f863b760e9309d34deb51eaaa05e09;hb=003ca21e49148941c07f69c87e2553f660913b65;hp=2563c799aa0b09f995e54b42592ad08deef228a7;hpb=fac9d2c52b3d046cf19025e391162999f2fda5ff;p=libucw.git diff --git a/ucw/log.c b/ucw/log.c index 2563c799..5c4a0069 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -219,7 +219,7 @@ log_pass_msg(int depth, struct log_stream *ls, struct log_msg *m) /* Process name, PID ( |log_title| + 6 + (|PID|<=10) chars ) */ if ((ls->msgfmt & LSFMT_TITLE) && log_title) { - if (ls->msgfmt & LSFMT_PID) + if ((ls->msgfmt & LSFMT_PID) && log_pid) p += sprintf(p, "[%s (%d)] ", log_title, log_pid); else p += sprintf(p, "[%s] ", log_title);