Staging: quickstart: Use %u for printing button id
authorSzymon Janc <szymon@janc.net.pl>
Wed, 11 Jan 2012 22:22:48 +0000 (23:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 01:16:50 +0000 (17:16 -0800)
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>
drivers/staging/quickstart/quickstart.c

index dbed79fefb8e462b631406671f2f9336d96e550d..9968a05eb2c1956546e796898a6bde16fd0c0039 100644 (file)
@@ -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) {