summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-12 14:49:03 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-12 14:49:03 +0000
commit8a59c44b682bcba890426325412445c87435ffc4 (patch)
tree9bb9c93d70932cf4e2020005176bccd82b7ea3df
parentf1e9ef46b34d27557da82e17aeed0b4aa8e4e5c8 (diff)
[PATCH 3/5] Logs also ipulog_strerror() and strerror() within ULOG plugin
This patch logs also the string representations ipulog:_strerror() and strerror() when an error occurred during receivement of packets within the ULOG plugin Signed-off-by: Peter Warasin <peter@endian.com>
-rw-r--r--input/packet/ulogd_inppkt_ULOG.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c
index 853bf2c..3a94700 100644
--- a/input/packet/ulogd_inppkt_ULOG.c
+++ b/input/packet/ulogd_inppkt_ULOG.c
@@ -227,8 +227,11 @@ static int ulog_read_cb(int fd, unsigned int what, void *param)
if (len <= 0) {
/* this is not supposed to happen */
ulogd_log(ULOGD_ERROR, "ipulog_read = %d! "
- "ipulog_errno = %d, errno = %d\n",
- len, ipulog_errno, errno);
+ "ipulog_errno = %d (%s), "
+ "errno = %d (%s)\n",
+ len, ipulog_errno,
+ ipulog_strerror(ipulog_errno),
+ errno, strerror(errno));
break;
}
while ((upkt = ipulog_get_packet(u->libulog_h,