From: Szymon Janc Date: Fri, 10 Feb 2012 20:05:42 +0000 (+0100) Subject: Staging: quickstart: Use scnprintf in quickstart_pressed_button_show X-Git-Tag: MMI-PSA29.97-13-9~17268^2~171 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e66912af2c205518b638321d466f6dcddba70e3a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index 88f8ff38662d..f6ec8f23e86d 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")); }