X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod.c;h=6fd8eef15a5b3c5f0c07c16795155daa63691ddc;hp=dee31d5c5606727d1f320e1ad16abb09a0c6b97b;hb=cf749f79f1c353cc5aac1013aeef5ed0eb0f63ee;hpb=19e10ff96914706d93f3c92bc325dc6ec62a8508 diff --git a/audiod.c b/audiod.c index dee31d5c..6fd8eef1 100644 --- a/audiod.c +++ b/audiod.c @@ -144,6 +144,8 @@ void para_log(int ll, const char* fmt,...) if (ll < conf.loglevel_arg) return; + if (!logfile && conf.daemon_given) + return; if (!hostname) hostname = para_hostname(); outfd = logfile? logfile : stderr; @@ -1107,7 +1109,7 @@ static void set_initial_status(void) return; } if (strcmp(conf.mode_arg, "on")) - PARA_WARNING_LOG("%s", "invalid mode\n"); + PARA_WARNING_LOG("invalid mode\n"); } /** @@ -1142,7 +1144,7 @@ int main(int argc, char *argv[]) }; if (audiod_cmdline_parser_config_file(config_file, &conf, ¶ms)) { - PARA_EMERG_LOG("%s", "parse error in config file\n"); + PARA_EMERG_LOG("parse error in config file\n"); exit(EXIT_FAILURE); } free(config_file);