提交 62c5afb8 编写于 作者: A Andy Shevchenko 提交者: John W. Linville

hostap: proc: substitute loops by %*phN

For dumping small buffers we may use %*phN specifier instead of custom
approach..
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 1186b623
...@@ -186,11 +186,9 @@ static int prism2_bss_list_proc_show(struct seq_file *m, void *v) ...@@ -186,11 +186,9 @@ static int prism2_bss_list_proc_show(struct seq_file *m, void *v)
bss->ssid[i] : '_'); bss->ssid[i] : '_');
seq_putc(m, '\t'); seq_putc(m, '\t');
for (i = 0; i < bss->ssid_len; i++) seq_printf(m, "%*phN", (int)bss->ssid_len, bss->ssid);
seq_printf(m, "%02x", bss->ssid[i]);
seq_putc(m, '\t'); seq_putc(m, '\t');
for (i = 0; i < bss->wpa_ie_len; i++) seq_printf(m, "%*phN", (int)bss->wpa_ie_len, bss->wpa_ie);
seq_printf(m, "%02x", bss->wpa_ie[i]);
seq_putc(m, '\n'); seq_putc(m, '\n');
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册