Skip to content

Commit 37bd9e8

Browse files
fenghusthudtor
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 4aec14d commit 37bd9e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/misc/ati_remote2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int ati_remote2_get_channel_mask(char *buffer,
6868
{
6969
pr_debug("%s()\n", __func__);
7070

71-
return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg);
71+
return sprintf(buffer, "0x%04x\n", *(unsigned int *)kp->arg);
7272
}
7373

7474
static int ati_remote2_set_mode_mask(const char *val,
@@ -84,7 +84,7 @@ static int ati_remote2_get_mode_mask(char *buffer,
8484
{
8585
pr_debug("%s()\n", __func__);
8686

87-
return sprintf(buffer, "0x%02x", *(unsigned int *)kp->arg);
87+
return sprintf(buffer, "0x%02x\n", *(unsigned int *)kp->arg);
8888
}
8989

9090
static unsigned int channel_mask = ATI_REMOTE2_MAX_CHANNEL_MASK;

0 commit comments

Comments
 (0)