From 9688383806aac671c7ae0faddaf96ec35c9a455b Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 19 Feb 2014 12:51:14 +0100 Subject: DEBUG: Fix build without journald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Lukáš Slebodník --- src/util/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util') diff --git a/src/util/debug.c b/src/util/debug.c index 908fca440..9cd0f41ff 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -203,14 +203,14 @@ void debug_fn(const char *file, const char *format, ...) { va_list ap; - -#ifdef WITH_JOURNALD - errno_t ret; struct timeval tv; struct tm *tm; char datetime[20]; int year; +#ifdef WITH_JOURNALD + errno_t ret; + if (!debug_file) { /* If we are not outputting logs to files, we should be sending them * to journald. -- cgit