Commit 115d5d28 authored by Steve French's avatar Steve French

smb3: do not display empty interface list

If server does not support listing interfaces then do not
display empty "Server interfaces" line to avoid confusing users.
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
CC: Aurelien Aptel <aaptel@suse.com>
parent bea851b8
......@@ -333,7 +333,9 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
spin_unlock(&GlobalMid_Lock);
spin_lock(&ses->iface_lock);
seq_printf(m, "\n\tServer interfaces: %zu\n", ses->iface_count);
if (ses->iface_count)
seq_printf(m, "\n\tServer interfaces: %zu\n",
ses->iface_count);
for (j = 0; j < ses->iface_count; j++) {
seq_printf(m, "\t%d)\n", j);
cifs_dump_iface(m, &ses->iface_list[j]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment