mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
Staging: quickstart: Use %u for printing button id
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>
This commit is contained in:
parent
505d2ad227
commit
21c1ddf314
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue