diff options
Diffstat (limited to 'src/ulogd.c')
-rw-r--r-- | src/ulogd.c | 9 |
1 files 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); } |