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

Cyrill Gorcunov gorcunov at gmail.com
Wed Dec 12 15:13:34 MSK 2018


Lets just use regular pr_perror helper prefix without
additional 'ERROR' keyword which may confuse external
tools.

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

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;
 }
 
-- 
2.17.2



More information about the CRIU mailing list