Commit 714443d9 authored by Pavel Emelyanov's avatar Pavel Emelyanov

netlink: Lower netlink error report log level

This most likely meand, that the respective -diag module is missing.
In that case the caller would check it and _might_ not fail the dump
at once. Thus treat it as error.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 52de6313
...@@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void * ...@@ -50,7 +50,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, void *
if (err->error == 0) if (err->error == 0)
return 0; return 0;
pr_err("ERROR %d reported by netlink\n", err->error); pr_warn("ERROR %d reported by netlink\n", err->error);
return err->error; return err->error;
} }
if (cb(hdr, arg)) if (cb(hdr, arg))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment