From 55b40d725f2925fabad63000449bce449ff26ab7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 19 Feb 2009 19:55:37 +0100 Subject: [PATCH] Logging: Fixed a bug in formatting of types. --- ucw/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) */ -- 2.39.2