[mmotm:master 256/287] drivers/net/wireless/hostap/hostap_proc.c:184:2: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'size_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   8f1fc64dc9b39fedb7390e086001ce5ec327e80d
commit: 5960020fb3589d619a226a3bb66c71f238cfbdff [256/287] wireless: hostap: proc: print properly escaped SSID
config: make ARCH=ia64 allmodconfig

All warnings:

   drivers/net/wireless/hostap/hostap_proc.c: In function 'prism2_bss_list_proc_show':
>> drivers/net/wireless/hostap/hostap_proc.c:184:2: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
     seq_printf(m, "%*pE", bss->ssid_len, bss->ssid);
     ^

vim +184 drivers/net/wireless/hostap/hostap_proc.c

   168		local_info_t *local = m->private;
   169		struct list_head *ptr = v;
   170		struct hostap_bss_info *bss;
   171		int i;
   172	
   173		if (ptr == &local->bss_list) {
   174			seq_printf(m, "#BSSID\tlast_update\tcount\tcapab_info\tSSID(txt)\t"
   175				   "SSID(hex)\tWPA IE\n");
   176			return 0;
   177		}
   178	
   179		bss = list_entry(ptr, struct hostap_bss_info, list);
   180		seq_printf(m, "%pM\t%lu\t%u\t0x%x\t",
   181			   bss->bssid, bss->last_update,
   182			   bss->count, bss->capab_info);
   183	
 > 184		seq_printf(m, "%*pE", bss->ssid_len, bss->ssid);
   185	
   186		seq_putc(m, '\t');
   187		for (i = 0; i < bss->ssid_len; i++)
   188			seq_printf(m, "%02x", bss->ssid[i]);
   189		seq_putc(m, '\t');
   190		for (i = 0; i < bss->wpa_ie_len; i++)
   191			seq_printf(m, "%02x", bss->wpa_ie[i]);
   192		seq_putc(m, '\n');

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]