2009-05-26 19:15:25

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH -next] iwmc3200wifi: fix printk format

From: Randy Dunlap <[email protected]>

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 <[email protected]>
Cc: [email protected]
---
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/


2009-05-26 19:19:38

by Samuel Ortiz

[permalink] [raw]
Subject: Re: [PATCH -next] iwmc3200wifi: fix printk format

On Tue, 2009-05-26 at 12:17 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> 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 <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>

Thanks Randy.

Cheers,
Samuel.

> Cc: [email protected]
> ---
> 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;
> }
>
>