From 4253141a9ea4745c3da5b28e00344d5f0fc706a5 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 13 Jan 2009 00:13:25 +0100 Subject: Display logfile to check in case of error. This patch adds the display of the used logging file to look at if there is a critical error. --- src/ulogd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ulogd.c b/src/ulogd.c index badd7bd..2e86b9d 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -440,8 +440,13 @@ void __ulogd_log(int level, char *file, int line, const char *format, ...) static void warn_and_exit(int daemonize) { - if (!daemonize) - fprintf(stderr, "Fatal error, check logfile.\n"); + if (!daemonize) { + if (logfile) + fprintf(stderr, "Fatal error, check logfile \"%s\".\n", + ulogd_logfile); + else + fprintf(stderr, "Fatal error.\n"); + } exit(1); } -- cgit v1.2.3