From: Jozsef Kadlecsik Date: Mon, 23 May 2011 08:36:33 +0000 (+0200) Subject: ipset_mnl_query: in debug mode print the errno returned by the cb function X-Git-Tag: v6.6~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b71deec45bd5cd40df92a7ebca2a6666cda203b;p=ipset ipset_mnl_query: in debug mode print the errno returned by the cb function --- diff --git a/lib/mnl.c b/lib/mnl.c index a1c70fd..75cadb6 100644 --- 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);