Commit 3f57b178 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

netfilter: use pr_perror only when errno has to be printed

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 39e4073d
......@@ -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;
}
......
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