orinoco: fix printk format specifier for size_t arguments
authorDavid Kilroy <kilroyd@googlemail.com>
Thu, 2 Jul 2009 19:26:45 +0000 (20:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:01:54 +0000 (15:01 -0400)
This addresses the following compile warnings on 64-bit platforms.

drivers/net/wireless/orinoco/scan.c: In function 'orinoco_add_hostscan_results':
drivers/net/wireless/orinoco/scan.c:194: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/net/wireless/orinoco/scan.c:211: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/net/wireless/orinoco/scan.c:211: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/scan.c

index 522eb98ec6f23a1576023ff71f64f98003545800..d2f10e9c21627a71059b82b5992d6a5ac47bf212 100644 (file)
@@ -190,7 +190,7 @@ void orinoco_add_hostscan_results(struct orinoco_private *priv,
                        /* Sanity check for atom_len */
                        if (atom_len < sizeof(struct prism2_scan_apinfo)) {
                                printk(KERN_ERR "%s: Invalid atom_len in scan "
-                                      "data: %d\n", priv->ndev->name,
+                                      "data: %zu\n", priv->ndev->name,
                                       atom_len);
                                abort = true;
                                goto scan_abort;
@@ -206,8 +206,8 @@ void orinoco_add_hostscan_results(struct orinoco_private *priv,
 
        /* Check that we got an whole number of atoms */
        if ((len - offset) % atom_len) {
-               printk(KERN_ERR "%s: Unexpected scan data length %d, "
-                      "atom_len %d, offset %d\n", priv->ndev->name, len,
+               printk(KERN_ERR "%s: Unexpected scan data length %zu, "
+                      "atom_len %zu, offset %d\n", priv->ndev->name, len,
                       atom_len, offset);
                abort = true;
                goto scan_abort;