From: Randy Dunlap <rdunlap@xenotime.net>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Alessandro Zummo <a.zummo@towertech.it>,
rtc-linux@googlegroups.com,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH -next] rtc: fix rtc-ds1307 printk format warning
Date: Mon, 27 Feb 2012 10:25:41 -0800 [thread overview]
Message-ID: <4F4BCAA5.8060308@xenotime.net> (raw)
In-Reply-To: <20120227182029.545a7db32550ce94c9faffb4@canb.auug.org.au>
From: Randy Dunlap <rdunlap@xenotime.net>
Fix printk format warning:
drivers/rtc/rtc-ds1307.c:915:3: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
---
drivers/rtc/rtc-ds1307.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20120227.orig/drivers/rtc/rtc-ds1307.c
+++ linux-next-20120227/drivers/rtc/rtc-ds1307.c
@@ -912,7 +912,7 @@ read_rtc:
goto exit_nvram;
}
set_bit(HAS_NVRAM, &ds1307->flags);
- dev_info(&client->dev, "%d bytes nvram\n", ds1307->nvram->size);
+ dev_info(&client->dev, "%zu bytes nvram\n", ds1307->nvram->size);
}
return 0;
prev parent reply other threads:[~2012-02-27 18:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-27 7:20 linux-next: Tree for Feb 27 Stephen Rothwell
2012-02-27 17:56 ` linux-next: Tree for Feb 27 (gpio-sodaville.c) Randy Dunlap
2012-02-27 23:40 ` Stephen Rothwell
2012-02-28 0:06 ` Grant Likely
2012-02-27 18:10 ` linux-next: Tree for Feb 27 (usbtouchscreen) Randy Dunlap
2012-02-27 21:38 ` Daniel Ritz
2012-02-28 9:19 ` Dmitry Torokhov
2012-02-28 10:48 ` Armando Visconti
2012-02-27 18:25 ` Randy Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4BCAA5.8060308@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.