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

Input: ati_remote2 - add missing newlines when printing module parameters

When I cat some module parameters by sysfs, it displays as follows. It's
better to add a newline for easy reading.

root@syzkaller:~# cat /sys/module/ati_remote2/parameters/mode_mask
0x1froot@syzkaller:~# cat /sys/module/ati_remote2/parameters/channel_mask
0xffffroot@syzkaller:~#

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Link: https://lore.kernel.org/r/20200720092148.9320-1-wangxiongfeng2@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Xiongfeng Wang and committed by
Dmitry Torokhov
37bd9e80 4aec14de

+2 -2
+2 -2
drivers/input/misc/ati_remote2.c
··· 68 68 { 69 69 pr_debug("%s()\n", __func__); 70 70 71 - return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg); 71 + return sprintf(buffer, "0x%04x\n", *(unsigned int *)kp->arg); 72 72 } 73 73 74 74 static int ati_remote2_set_mode_mask(const char *val, ··· 84 84 { 85 85 pr_debug("%s()\n", __func__); 86 86 87 - return sprintf(buffer, "0x%02x", *(unsigned int *)kp->arg); 87 + return sprintf(buffer, "0x%02x\n", *(unsigned int *)kp->arg); 88 88 } 89 89 90 90 static unsigned int channel_mask = ATI_REMOTE2_MAX_CHANNEL_MASK;