forked from Minki/linux
Staging: quickstart: Use scnprintf in quickstart_pressed_button_show
Use scnprintf instead of snprintf in quickstart_pressed_button_show as suggested in Documentation/filesystems/sysfs.txt. Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
940f77b07f
commit
e66912af2c
@ -98,7 +98,7 @@ static ssize_t quickstart_pressed_button_show(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
return snprintf(buf, PAGE_SIZE, "%s\n",
|
||||
return scnprintf(buf, PAGE_SIZE, "%s\n",
|
||||
(pressed ? pressed->name : "none"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user