[PATCH 13/16] Staging: quickstart: Use %u for printing button id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Button id is of unsigned int type.

Signed-off-by: Szymon Janc <szymon@xxxxxxxxxxx>
---
 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 486b973..f830360 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)
-- 
1.7.8.2


--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux