From: Martin Mares Date: Thu, 19 Feb 2009 18:55:37 +0000 (+0100) Subject: Logging: Fixed a bug in formatting of types. X-Git-Tag: holmes-import~51 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=55b40d725f2925fabad63000449bce449ff26ab7;p=libucw.git Logging: Fixed a bug in formatting of types. --- diff --git a/ucw/log.c b/ucw/log.c index 35a0cc83..1ed35fee 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -292,7 +292,7 @@ log_pass_msg(int depth, struct log_stream *ls, struct log_msg *m) } /* Message type ( |type| + 3 chars ) */ - if (ls->msgfmt & LSFMT_TYPE) + if (type) p += sprintf(p, "{%s} ", type); /* The message itself ( |m| + 1 chars ) */