From bee121ee9b749b47da5ad3f876772c8eae7c03d3 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Fri, 4 Nov 2016 11:37:12 +0100 Subject: conntrackd: replace fprintf calls with dlog() Review fprintf() and perror() calls and replace them with proper logs, since it now supports being called anytime during runtime. While at it, several messages are fixed, deleting \n, adjusting coding style and some typos. Also, the 'conntrackd cannot start, please review your configuration' is printed before closing the log engine. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/systemd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/systemd.c') diff --git a/src/systemd.c b/src/systemd.c index 4eb880c..2c5daaf 100644 --- a/src/systemd.c +++ b/src/systemd.c @@ -42,8 +42,8 @@ void sd_ct_watchdog_init(void) ret = sd_watchdog_enabled(0, &sd_watchdog_interval); if (ret < 0) { - fprintf(stderr, "WARNING: failed to get watchdog details from" - " systemd: %s\n", strerror(-ret)); + dlog(LOG_WARNING, "failed to get watchdog details from " + "systemd: %s", strerror(-ret)); return; } else if (ret == 0) { /* no watchdog required */ -- cgit v1.2.3