netfilter: use pr_perror only when errno has to be printed

Submitted by Andrei Vagin on June 15, 2016, 5:52 p.m.

Details

Message ID 1466013145-16169-1-git-send-email-avagin@openvz.org
State Accepted
Series "netfilter: use pr_perror only when errno has to be printed"
Commit 12b55e0aa61f5a5de5bb55608eed006b37a09802
Headers show

Commit Message

Andrei Vagin June 15, 2016, 5:52 p.m.
From: Andrew Vagin <avagin@virtuozzo.com>

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

Patch hide | download patch | download mbox

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

Comments

Pavel Emelianov June 16, 2016, 11:23 a.m.
Applied