diff options
author | Kenneth D'souza <kdsouza@redhat.com> | 2020-06-09 07:42:10 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-06-09 07:57:21 +0300 |
commit | 0b0430c6a10a22813e3d40c5658ae644acda4303 (patch) | |
tree | 6344d41a8283cd43c21af4399be92f1413909c15 /fs/cifs/cifs_debug.c | |
parent | 5865985416ebb5a0c198a819a098b5cc300ac8a4 (diff) | |
download | linux-0b0430c6a10a22813e3d40c5658ae644acda4303.tar.xz |
cifs: Add get_security_type_str function to return sec type.
This code is more organized and robust.
Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 3ad1a98fd567..fc98b97b396a 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -221,8 +221,6 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) struct cifs_ses *ses; struct cifs_tcon *tcon; int i, j; - const char *security_types[] = {"Unspecified", "LANMAN", "NTLM", - "NTLMv2", "RawNTLMSSP", "Kerberos"}; seq_puts(m, "Display Internal CIFS Data Structures for Debugging\n" @@ -379,7 +377,7 @@ skip_rdma: } seq_printf(m,"Security type: %s\n", - security_types[server->ops->select_sectype(server, ses->sectype)]); + get_security_type_str(server->ops->select_sectype(server, ses->sectype))); if (server->rdma) seq_printf(m, "RDMA\n\t"); |