[CRIU] [PATCH] netfilter: use pr_perror only when errno has to be printed

Andrey Vagin avagin at openvz.org
Wed Jun 15 10:52:25 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/netfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/netfilter.c b/criu/netfilter.c
index 2c3acd6..a105ed7 100644
--- a/criu/netfilter.c
+++ b/criu/netfilter.c
@@ -85,7 +85,7 @@ static int nf_connection_switch_raw(int family, u32 *src_addr, u16 src_port,
 	 */
 	ret = cr_system(-1, -1, -1, "sh", argv, 0);
 	if (ret < 0 || !WIFEXITED(ret) || WEXITSTATUS(ret)) {
-		pr_perror("Iptables configuration failed");
+		pr_err("Iptables configuration failed\n");
 		return -1;
 	}
 
-- 
2.7.4



More information about the CRIU mailing list