* mu-log: small cosmetics

This commit is contained in:
Dirk-Jan C. Binnema 2010-07-30 20:52:30 +03:00
parent f2cc543baf
commit 024c7535fb
1 changed files with 2 additions and 2 deletions

View File

@ -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 */