From: Szymon Janc Date: Wed, 11 Jan 2012 22:22:48 +0000 (+0100) Subject: Staging: quickstart: Use %u for printing button id X-Git-Tag: MMI-PSA29.97-13-9~17268^2~176^2~116 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21c1ddf31415f5db34975760e847bf6033b4f9db;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: quickstart: Use %u for printing button id Button id is of unsigned int type. Signed-off-by: Szymon Janc Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index dbed79fefb8e..9968a05eb2c1 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) {