]> mj.ucw.cz Git - libucw.git/commitdiff
Logging: Fixed a bug in formatting of types.
authorMartin Mares <mj@ucw.cz>
Thu, 19 Feb 2009 18:55:37 +0000 (19:55 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 19 Feb 2009 18:55:37 +0000 (19:55 +0100)
ucw/log.c

index 35a0cc8392d8a62e2400f89ec1ef1986cba3ccbf..1ed35feef49d9b08502503e479417445b908b521 100644 (file)
--- 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 ) */