[3/5] net: libnetlink -- Drop ERROR keyword from default handler

Submitted by Cyrill Gorcunov on Dec. 20, 2018, 8:08 a.m.

Details

Message ID 20181220080841.28950-4-gorcunov@gmail.com
State Accepted
Series "net: diag -- Placate diag probing"
Headers show

Commit Message

Cyrill Gorcunov Dec. 20, 2018, 8:08 a.m.
Lets just use regular pr_perror helper prefix without
additional 'ERROR' keyword which may confuse external
tools.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/libnetlink.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/libnetlink.c b/criu/libnetlink.c
index 60e98e3460dc..ca9968309a70 100644
--- a/criu/libnetlink.c
+++ b/criu/libnetlink.c
@@ -45,10 +45,14 @@  static int nlmsg_receive(char *buf, int len,
 	return 1;
 }
 
+/*
+ * Default errror handler: just point our an error
+ * and pass up to caller.
+ */
 static int rtnl_return_err(int err, struct ns_id *ns, void *arg)
 {
 	errno = -err;
-	pr_perror("ERROR %d reported by netlink", err);
+	pr_perror("%d reported by netlink", err);
 	return err;
 }