From 4f72a4d0a9501f6b60aeb561fa55f3fcf5de9f96 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Fri, 18 Jan 2008 13:35:26 +0000 Subject: Max Kellermann : improve error message if netlink initialization fails --- src/run.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/run.c b/src/run.c index a5b6a79..3b50ac8 100644 --- a/src/run.c +++ b/src/run.c @@ -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; } -- cgit v1.2.3