Skip to content

Commit

Permalink
Staging: quickstart: Use %u for printing button id
Browse files Browse the repository at this point in the history
Button id is of unsigned int type.

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 9, 2012
1 parent 505d2ad commit 21c1ddf
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 @@ -80,7 +80,7 @@ static ssize_t quickstart_buttons_show(struct device *dev,
return snprintf(buf, PAGE_SIZE, "none");

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);

if (count >= PAGE_SIZE) {
Expand Down

0 comments on commit 21c1ddf

Please sign in to comment.