Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

orinoco: fix printk format specifier for size_t arguments

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>

authored by

David Kilroy and committed by
John W. Linville
4244f41a 0a9b5e17

+3 -3
+3 -3
drivers/net/wireless/orinoco/scan.c
··· 190 190 /* Sanity check for atom_len */ 191 191 if (atom_len < sizeof(struct prism2_scan_apinfo)) { 192 192 printk(KERN_ERR "%s: Invalid atom_len in scan " 193 - "data: %d\n", priv->ndev->name, 193 + "data: %zu\n", priv->ndev->name, 194 194 atom_len); 195 195 abort = true; 196 196 goto scan_abort; ··· 206 206 207 207 /* Check that we got an whole number of atoms */ 208 208 if ((len - offset) % atom_len) { 209 - printk(KERN_ERR "%s: Unexpected scan data length %d, " 210 - "atom_len %d, offset %d\n", priv->ndev->name, len, 209 + printk(KERN_ERR "%s: Unexpected scan data length %zu, " 210 + "atom_len %zu, offset %d\n", priv->ndev->name, len, 211 211 atom_len, offset); 212 212 abort = true; 213 213 goto scan_abort;