summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/run.c10
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 25c8c38..815da0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -87,6 +87,7 @@ o eliminate unsed cache_get_conntrack() in rs_list_to_tx()
o remove capability code and rely on the error returned by the syscall
o major simplification of the logging infrastructure
o use fputs() instead of fprintf() in log.c
+o improve error message if netlink initialization fails
version 0.9.5 (2007/07/29)
------------------------------
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;
}