[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


_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux