]> granicus.if.org Git - ipset/commitdiff
ipset_mnl_query: in debug mode print the errno returned by the cb function
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 23 May 2011 08:36:33 +0000 (10:36 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 23 May 2011 08:36:33 +0000 (10:36 +0200)
lib/mnl.c

index a1c70fdbd9797bff6a88c83aa1714fdc992cf2f4..75cadb6d474b448bf721dbb034d3b28224f68e1f 100644 (file)
--- a/lib/mnl.c
+++ b/lib/mnl.c
@@ -104,7 +104,7 @@ ipset_mnl_query(struct ipset_handle *handle, void *buffer, size_t len)
                                  handle->cb_ctl[NLMSG_MIN_TYPE],
                                  handle->data,
                                  handle->cb_ctl, NLMSG_MIN_TYPE);
-               D("nfln_cb_run2, ret: %d", ret);
+               D("nfln_cb_run2, ret: %d, errno %d", ret, errno);
                if (ret <= 0)
                        break;
                ret = mnl_socket_recvfrom(handle->h, buffer, len);