Commit 21c1ddf3 authored by Szymon Janc's avatar Szymon Janc Committed by Greg Kroah-Hartman

Staging: quickstart: Use %u for printing button id

Button id is of unsigned int type.
Signed-off-by: default avatarSzymon Janc <szymon@janc.net.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 505d2ad2
...@@ -80,7 +80,7 @@ static ssize_t quickstart_buttons_show(struct device *dev, ...@@ -80,7 +80,7 @@ static ssize_t quickstart_buttons_show(struct device *dev,
return snprintf(buf, PAGE_SIZE, "none"); return snprintf(buf, PAGE_SIZE, "none");
list_for_each_entry(b, &buttons, list) { list_for_each_entry(b, &buttons, list) {
count += snprintf(buf + count, PAGE_SIZE - count, "%d\t%s\n", count += snprintf(buf + count, PAGE_SIZE - count, "%u\t%s\n",
b->id, b->name); b->id, b->name);
if (count >= PAGE_SIZE) { if (count >= PAGE_SIZE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment