Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wangxiongfeng2@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Xiongfeng Wang and committed by
Anna Schumaker
2ac3ddc7 cd2ed9bd

+1 -1
+1 -1
net/sunrpc/auth.c
··· 81 81 unsigned int nbits; 82 82 83 83 nbits = *(unsigned int *)kp->arg; 84 - return sprintf(buffer, "%u", 1U << nbits); 84 + return sprintf(buffer, "%u\n", 1U << nbits); 85 85 } 86 86 87 87 #define param_check_hashtbl_sz(name, p) __param_check(name, p, unsigned int);