staging: ks7010: fix printk format warnings
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 31 May 2016 10:56:24 +0000 (12:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:42:53 +0000 (22:42 -0700)
Use proper type for size_t.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_config.c
drivers/staging/ks7010/ks7010_sdio.c

index 06ff8852e17f3369b2f66f99c01e4d1e8eb80b9a..4b00d25cd8f575d815eb6106959eec12495486d1 100644 (file)
@@ -257,7 +257,7 @@ int ks_wlan_read_config_file(ks_wlan_private *priv)
        if (request_firmware_direct(&fw_entry, cfg_file, dev))
                return 0;
 
-       DPRINTK(4, "success request_firmware() file=%s size=%d\n", cfg_file, fw_entry->size);
+       DPRINTK(4, "success request_firmware() file=%s size=%zu\n", cfg_file, fw_entry->size);
        cur_p = fw_entry->data;
        end_p = cur_p + fw_entry->size;
        *end_p = '\0';
index 3fb432c9dd314dd3958c1e07180cbf42781b1464..50364909449aecf8f5f821bed3a361cb8bfe2b86 100644 (file)
@@ -750,7 +750,7 @@ static int ks79xx_upload_firmware(ks_wlan_private *priv, struct ks_sdio_card *ca
                DPRINTK(1,"error request_firmware() file=%s\n", priv->reg.rom_file);
                return 1;
        }
-       DPRINTK(4,"success request_firmware() file=%s size=%d\n", priv->reg.rom_file, fw_entry->size);
+       DPRINTK(4,"success request_firmware() file=%s size=%zu\n", priv->reg.rom_file, fw_entry->size);
        length = fw_entry->size;
 
        /* Load Program */