From ecbe4883dca1dcfda692a8f91fccc62eb7bb2771 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 26 Mar 2013 19:40:44 +0400 Subject: [PATCH] netlink: Don't signify error code The netlink layer reports negative error code so no need to signify it. [xemul: This is what we do for the rest of the nlk code.] Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- libnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetlink.c b/libnetlink.c index e852aaa55..4e4e02bc3 100644 --- a/libnetlink.c +++ b/libnetlink.c @@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void * if (err->error == 0) return 0; - pr_err("ERROR %d reported by netlink\n", -err->error); + pr_err("ERROR %d reported by netlink\n", err->error); return -1; } if (cb(hdr, arg))