Skip to content

Commit

Permalink
Print errors from nl_recvmsgs only in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olafhering committed Nov 6, 2013
1 parent 16e31a2 commit 668ec6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel.c
Expand Up @@ -493,7 +493,7 @@ __ni_nl_talk(ni_netlink_t *nl, struct nl_msg *msg,
/* libnl sets NLM_F_ACK per default, wait for ack before proceeding */
do {
if ((err = nl_recvmsgs(nl_sock, cb)) < 0) {
ni_error("%s: recv failed: %s", __func__, nl_geterror(err));
ni_debug_socket("%s: recv failed: %s", __func__, nl_geterror(err));
break;
}
} while (ack == 0);
Expand Down

0 comments on commit 668ec6f

Please sign in to comment.