Commit 67050512 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

syscall: don't use pr_info to print a part of string

Before:
(00.009468)     87: sysctl: <kernel/sem> = <(00.009475)     87: 2108913153 (00.009481)     87: 1252387386 (00.009486)     87: 835139248 (00.009491)     87: 320896030 (00.009496)     87: >
After:
(00.009468)     87: sysctl: <kernel/sem> = <2108913153 1252387386 835139248 320896030 >
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d7ff4a13
......@@ -106,11 +106,12 @@ static int sysctl_print_##__type(int fd, \
__type *arg, \
int nr) \
{ \
int i; \
pr_info("sysctl: <%s> = <", req->name); \
char msg[PAGE_SIZE]; \
int i, off = 0; \
for (i = 0; i < nr; i++) \
pr_info(__fmt, arg[i]); \
pr_info(">\n"); \
off += snprintf(msg + off, sizeof(msg) - off, \
__fmt, arg[i]); \
pr_info("sysctl: <%s> = <%s>\n", req->name, msg); \
\
return 0; \
}
......
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