From 024c7535fb346f5a2402ddbe1b81d08621096b15 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 30 Jul 2010 20:52:30 +0300 Subject: [PATCH] * mu-log: small cosmetics --- src/mu-log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mu-log.c b/src/mu-log.c index 845e5f92..b4181cf6 100644 --- a/src/mu-log.c +++ b/src/mu-log.c @@ -207,7 +207,7 @@ mu_log_init (const char* muhome, return FALSE; } - fd = open (logfile, O_WRONLY|O_CREAT|O_APPEND, 00600); + fd = open (logfile, O_WRONLY|O_CREAT|O_APPEND, 00600); if (fd < 0) g_warning ("%s: open() of '%s' failed: %s\n", __FUNCTION__, logfile, strerror(errno)); @@ -274,7 +274,7 @@ log_write (const char* domain, GLogLevelFlags level, fprintf (stderr, "%s: failed to write to log: %s\n", __FUNCTION__, strerror(errno)); - if (!(MU_LOG->_quiet) && level & G_LOG_LEVEL_MESSAGE) + if (!(MU_LOG->_quiet) && (level & G_LOG_LEVEL_MESSAGE)) g_print ("mu: %s\n", msg); /* for serious errors, log them to stderr as well */