Commit 4913affd authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

Staging: rtl8187se: fix printk format warnings

Fix staging/rtl8187se printk format warnings:

drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c:845: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'
drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c:852: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bdd345d8
...@@ -842,14 +842,14 @@ int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len) ...@@ -842,14 +842,14 @@ int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len)
if (len>MAX_WPA_IE_LEN || (len && ie == NULL)) if (len>MAX_WPA_IE_LEN || (len && ie == NULL))
{ {
printk("return error out, len:%d\n", len); printk("return error out, len:%zu\n", len);
return -EINVAL; return -EINVAL;
} }
if (len) if (len)
{ {
if (len != ie[1]+2){ if (len != ie[1]+2){
printk("len:%d, ie:%d\n", len, ie[1]); printk("len:%zu, ie:%d\n", len, ie[1]);
return -EINVAL; return -EINVAL;
} }
buf = kmalloc(len, GFP_KERNEL); buf = kmalloc(len, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment