X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=a5ae0268cfde442345cd2c0993f6a95ce07f1c2a;hp=e03d207adf8a639414b21c098885ad1f3f7263db;hb=cf749f79f1c353cc5aac1013aeef5ed0eb0f63ee;hpb=c33fa55e39f9ef715abe47cabdfd997a190da61d diff --git a/server.c b/server.c index e03d207a..a5ae0268 100644 --- a/server.c +++ b/server.c @@ -205,7 +205,7 @@ static void shm_init(void) mmd->sender_cmd_data.cmd_num = -1; return; err_out: - PARA_EMERG_LOG("%s", para_strerror(-ret)); + PARA_EMERG_LOG("%s\n", para_strerror(-ret)); exit(EXIT_FAILURE); } @@ -266,7 +266,7 @@ static void parse_config(int override) /* logfile */ if (!conf.logfile_given && conf.daemon_given) { ret = -1; - PARA_EMERG_LOG("%s", "daemon, but no log file\n"); + PARA_EMERG_LOG("fatal: daemon option, but no log file given\n"); goto out; } if (conf.logfile_given) @@ -421,7 +421,7 @@ static unsigned server_init(int argc, char **argv) */ static void handle_sighup(void) { - PARA_NOTICE_LOG("%s", "SIGHUP\n"); + PARA_NOTICE_LOG("SIGHUP\n"); close_log(logfile); /* gets reopened if necessary by parse_config */ logfile = NULL; parse_config(1); /* reopens log */ @@ -554,7 +554,7 @@ genocide: random(); chld_pid = fork(); if (chld_pid < 0) { - PARA_CRIT_LOG("%s", "fork failed\n"); + PARA_CRIT_LOG("fork failed\n"); goto repeat; } if (chld_pid) {