From: Xiongfeng Wang Date: Fri, 8 May 2020 01:33:00 +0000 (+0800) Subject: sunrpc: add missing newline when printing parameter 'auth_hashtable_size' by sysfs X-Git-Tag: baikal/aarch64/sdk6.1~9096^2~5 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=d3af2499e9cca5fd92e06eb0608fb162dda71a85;p=kernel.git sunrpc: add missing newline when printing parameter 'auth_hashtable_size' by sysfs When I cat parameter '/sys/module/sunrpc/parameters/auth_hashtable_size', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/auth_hashtable_size 16[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 5748ad0ba1bda..a9f0d17fdb0d6 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -81,7 +81,7 @@ static int param_get_hashtbl_sz(char *buffer, const struct kernel_param *kp) unsigned int nbits; nbits = *(unsigned int *)kp->arg; - return sprintf(buffer, "%u", 1U << nbits); + return sprintf(buffer, "%u\n", 1U << nbits); } #define param_check_hashtbl_sz(name, p) __param_check(name, p, unsigned int);