Commit 43193f62 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Andrei Vagin

net: remove excess null terminating characters in messages

Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
parent 5432a964
...@@ -1717,7 +1717,7 @@ static int run_ip_tool(char *arg1, char *arg2, char *arg3, char *arg4, int fdin, ...@@ -1717,7 +1717,7 @@ static int run_ip_tool(char *arg1, char *arg2, char *arg3, char *arg4, int fdin,
char *ip_tool_cmd; char *ip_tool_cmd;
int ret; int ret;
pr_debug("\tRunning ip %s %s %s %s\n", arg1, arg2, arg3 ? : "\0", arg4 ? : "\0"); pr_debug("\tRunning ip %s %s %s %s\n", arg1, arg2, arg3 ? : "", arg4 ? : "");
ip_tool_cmd = getenv("CR_IP_TOOL"); ip_tool_cmd = getenv("CR_IP_TOOL");
if (!ip_tool_cmd) if (!ip_tool_cmd)
...@@ -1727,7 +1727,7 @@ static int run_ip_tool(char *arg1, char *arg2, char *arg3, char *arg4, int fdin, ...@@ -1727,7 +1727,7 @@ static int run_ip_tool(char *arg1, char *arg2, char *arg3, char *arg4, int fdin,
(char *[]) { "ip", arg1, arg2, arg3, arg4, NULL }, flags); (char *[]) { "ip", arg1, arg2, arg3, arg4, NULL }, flags);
if (ret) { if (ret) {
if (!(flags & CRS_CAN_FAIL)) if (!(flags & CRS_CAN_FAIL))
pr_err("IP tool failed on %s %s %s %s\n", arg1, arg2, arg3 ? : "\0", arg4 ? : "\0"); pr_err("IP tool failed on %s %s %s %s\n", arg1, arg2, arg3 ? : "", arg4 ? : "");
return -1; 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