]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Staging: rtl8187se: fix printk format warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 11 Feb 2009 21:19:35 +0000 (13:19 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:30 +0000 (14:53 -0700)
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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c

index 6aad61e7804161d60b483b1d487c3e3341cfd83e..d1295e56fd425bb2bdcb39484db9c25c82b66312 100644 (file)
@@ -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))
        {
-               printk("return error out, len:%d\n", len);
+               printk("return error out, len:%zu\n", len);
        return -EINVAL;
        }
 
        if (len)
        {
                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;
                }
                buf = kmalloc(len, GFP_KERNEL);