diff options
author | Szymon Janc <szymon@janc.net.pl> | 2012-02-10 20:05:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-14 04:08:55 (GMT) |
commit | e66912af2c205518b638321d466f6dcddba70e3a (patch) | |
tree | ada033bec6dd31fc6985b2485270a9399dc9a337 /drivers/staging/quickstart | |
parent | 940f77b07f85a4211fb149d6316a3cbd84d7227d (diff) | |
download | linux-e66912af2c205518b638321d466f6dcddba70e3a.tar.xz |
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>
Diffstat (limited to 'drivers/staging/quickstart')
-rw-r--r-- | drivers/staging/quickstart/quickstart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index 88f8ff3..f6ec8f2 100644 --- a/drivers/staging/quickstart/quickstart.c +++ b/drivers/staging/quickstart/quickstart.c @@ -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")); } |