Skip to content

Commit 4aec14d

Browse files
fenghusthudtor
authored andcommitted
Input: psmouse - add a newline when printing 'proto' by sysfs
When I cat parameter 'proto' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/module/psmouse/parameters/proto autoroot@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 a5c33d5 commit 4aec14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/mouse/psmouse-base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ static int psmouse_get_maxproto(char *buffer, const struct kernel_param *kp)
20422042
{
20432043
int type = *((unsigned int *)kp->arg);
20442044

2045-
return sprintf(buffer, "%s", psmouse_protocol_by_type(type)->name);
2045+
return sprintf(buffer, "%s\n", psmouse_protocol_by_type(type)->name);
20462046
}
20472047

20482048
static int __init psmouse_init(void)

0 commit comments

Comments
 (0)