diff options
author | Arturo Borrero Gonzalez <arturo@debian.org> | 2016-11-04 11:37:12 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-09 00:26:04 +0100 |
commit | bee121ee9b749b47da5ad3f876772c8eae7c03d3 (patch) | |
tree | 9e9b6671404e86b81d7eaf860a71eff118c23e79 /src/sync-mode.c | |
parent | ccb1c8b58f91b32dbb5dc8b9493d1a157946b7e7 (diff) | |
download | conntrack-tools-bee121ee9b749b47da5ad3f876772c8eae7c03d3.tar.gz |
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 <arturo@debian.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 8fe65f1..082e2ce 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -377,8 +377,8 @@ static int init_sync(void) else if (CONFIG(flags) & CTD_SYNC_NOTRACK) STATE_SYNC(sync) = &sync_notrack; else { - fprintf(stderr, "WARNING: No synchronization mode specified. " - "Defaulting to FT-FW mode.\n"); + dlog(LOG_WARNING, "No synchronization mode specified. " + "Defaulting to FT-FW mode."); CONFIG(flags) |= CTD_SYNC_FTFW; STATE_SYNC(sync) = &sync_ftfw; } |