* [PATCH -next] iwmc3200wifi: fix printk format
@ 2009-05-26 19:17 Randy Dunlap
2009-05-26 19:21 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2009-05-26 19:17 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org; +Cc: ilw, linville@tuxdriver.com
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix printk format for size_t variable:
drivers/net/wireless/iwmc3200wifi/fw.c:75: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: ilw@linux.intel.com
---
drivers/net/wireless/iwmc3200wifi/fw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20090526.orig/drivers/net/wireless/iwmc3200wifi/fw.c
+++ linux-next-20090526/drivers/net/wireless/iwmc3200wifi/fw.c
@@ -72,7 +72,7 @@ static int iwm_fw_op_offset(struct iwm_p
}
if (fw->size < IWM_HDR_LEN) {
- IWM_ERR(iwm, "FW is too small (%d)\n", fw->size);
+ IWM_ERR(iwm, "FW is too small (%zu)\n", fw->size);
return -EINVAL;
}
--
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] iwmc3200wifi: fix printk format
2009-05-26 19:17 [PATCH -next] iwmc3200wifi: fix printk format Randy Dunlap
@ 2009-05-26 19:21 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2009-05-26 19:21 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-wireless@vger.kernel.org, ilw, linville@tuxdriver.com
On Tue, 2009-05-26 at 12:17 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix printk format for size_t variable:
>
> drivers/net/wireless/iwmc3200wifi/fw.c:75: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Thanks Randy.
Cheers,
Samuel.
> Cc: ilw@linux.intel.com
> ---
> drivers/net/wireless/iwmc3200wifi/fw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20090526.orig/drivers/net/wireless/iwmc3200wifi/fw.c
> +++ linux-next-20090526/drivers/net/wireless/iwmc3200wifi/fw.c
> @@ -72,7 +72,7 @@ static int iwm_fw_op_offset(struct iwm_p
> }
>
> if (fw->size < IWM_HDR_LEN) {
> - IWM_ERR(iwm, "FW is too small (%d)\n", fw->size);
> + IWM_ERR(iwm, "FW is too small (%zu)\n", fw->size);
> return -EINVAL;
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-26 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-26 19:17 [PATCH -next] iwmc3200wifi: fix printk format Randy Dunlap
2009-05-26 19:21 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).