diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-18 13:35:26 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-18 13:35:26 +0000 |
commit | 4f72a4d0a9501f6b60aeb561fa55f3fcf5de9f96 (patch) | |
tree | 4b35b5bfd618770fb3c7582b05ce1e82252a950d /src | |
parent | 91d431dacd79d93d671ace690e2e9c7fbb0f2877 (diff) | |
download | conntrack-tools-4f72a4d0a9501f6b60aeb561fa55f3fcf5de9f96.tar.gz conntrack-tools-4f72a4d0a9501f6b60aeb561fa55f3fcf5de9f96.zip |
Max Kellermann <max@duempel.org>:
improve error message if netlink initialization fails
Diffstat (limited to 'src')
-rw-r--r-- | src/run.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -116,14 +116,16 @@ init(void) } if (nl_init_event_handler() == -1) { - dlog(LOG_ERR, "can't open netlink handler! " - "no ctnetlink kernel support?"); + dlog(STATE(log), LOG_ERR, "can't open netlink handler: %s", + strerror(errno)); + dlog(STATE(log), LOG_ERR, "no ctnetlink kernel support?"); return -1; } if (nl_init_dump_handler() == -1) { - dlog(LOG_ERR, "can't open netlink handler! " - "no ctnetlink kernel support?"); + dlog(STATE(log), LOG_ERR, "can't open netlink handler: %s", + strerror(errno)); + dlog(STATE(log), LOG_ERR, "no ctnetlink kernel support?"); return -1; } |