iwmc3200wifi: fix printk format
PATCH 1/1 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]>
--- drivers/net/wireless/iwmc3200wifi/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/iwmc3200wifi/fw.c +1 -1
@@ -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 ; }
Signature · 3 lines
~Randy LPC 2009, Sept. 23-25, Portland, Oregon http://linuxplumbersconf.org/2009/
Quoted 7 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix printk format for
size_tvariable:
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.
Quoted 17 lines
--- drivers/net/wireless/iwmc3200wifi/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/wireless/iwmc3200wifi/fw.c +1
-1@@ -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 ; }