diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 429da1b3e62a29a64773e170eb6a2180fbcfd589..536bf369b97327c35571aac206af3d15cf646d9c 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -87,15 +87,15 @@ param_get_pool_mode(char *buf, const struct kernel_param *kp) switch (*ip) { case SVC_POOL_AUTO: - return strlcpy(buf, "auto", 20); + return strlcpy(buf, "auto\n", 20); case SVC_POOL_GLOBAL: - return strlcpy(buf, "global", 20); + return strlcpy(buf, "global\n", 20); case SVC_POOL_PERCPU: - return strlcpy(buf, "percpu", 20); + return strlcpy(buf, "percpu\n", 20); case SVC_POOL_PERNODE: - return strlcpy(buf, "pernode", 20); + return strlcpy(buf, "pernode\n", 20); default: - return sprintf(buf, "%d", *ip); + return sprintf(buf, "%d\n", *ip); } }