Skip to content

Commit

Permalink
Staging: quickstart: Use scnprintf in quickstart_pressed_button_show
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Szymon Janc authored and Greg Kroah-Hartman committed Feb 14, 2012
1 parent 940f77b commit e66912a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/quickstart/quickstart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit e66912a

Please sign in to comment.