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@xxxxxxxxxx> --- input/packet/ulogd_inppkt_ULOG.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Index: ulogd-2.0.0beta1/input/packet/ulogd_inppkt_ULOG.c =================================================================== --- ulogd-2.0.0beta1.orig/input/packet/ulogd_inppkt_ULOG.c 2008-01-11 12:58:50.000000000 +0100 +++ ulogd-2.0.0beta1/input/packet/ulogd_inppkt_ULOG.c 2008-01-11 13:10:44.000000000 +0100 @@ -227,8 +227,11 @@ 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, -- - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html