diff options
author | Szymon Janc <szymon@janc.net.pl> | 2012-01-11 22:22:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-09 01:16:50 (GMT) |
commit | 21c1ddf31415f5db34975760e847bf6033b4f9db (patch) | |
tree | cfbfd90802606d4f6f8683cb965e4c5239918971 | |
parent | 505d2ad2277950ee67e8ed4a12a349f18925c0f4 (diff) | |
download | linux-fsl-qoriq-21c1ddf31415f5db34975760e847bf6033b4f9db.tar.xz |
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>
-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 dbed79f..9968a05 100644 --- a/drivers/staging/quickstart/quickstart.c +++ b/drivers/staging/quickstart/quickstart.c @@ -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) { |