diff options
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 8aae8e28038c..e8140528ca5c 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c | |||
@@ -57,19 +57,21 @@ cifs_dump_mem(char *label, void *data, int length) | |||
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
60 | #ifdef CONFIG_CIFS_DEBUG2 | ||
61 | void cifs_dump_detail(void *buf) | 60 | void cifs_dump_detail(void *buf) |
62 | { | 61 | { |
62 | #ifdef CONFIG_CIFS_DEBUG2 | ||
63 | struct smb_hdr *smb = (struct smb_hdr *)buf; | 63 | struct smb_hdr *smb = (struct smb_hdr *)buf; |
64 | 64 | ||
65 | cERROR(1, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d", | 65 | cERROR(1, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d", |
66 | smb->Command, smb->Status.CifsError, | 66 | smb->Command, smb->Status.CifsError, |
67 | smb->Flags, smb->Flags2, smb->Mid, smb->Pid); | 67 | smb->Flags, smb->Flags2, smb->Mid, smb->Pid); |
68 | cERROR(1, "smb buf %p len %d", smb, smbCalcSize(smb)); | 68 | cERROR(1, "smb buf %p len %d", smb, smbCalcSize(smb)); |
69 | #endif /* CONFIG_CIFS_DEBUG2 */ | ||
69 | } | 70 | } |
70 | 71 | ||
71 | void cifs_dump_mids(struct TCP_Server_Info *server) | 72 | void cifs_dump_mids(struct TCP_Server_Info *server) |
72 | { | 73 | { |
74 | #ifdef CONFIG_CIFS_DEBUG2 | ||
73 | struct list_head *tmp; | 75 | struct list_head *tmp; |
74 | struct mid_q_entry *mid_entry; | 76 | struct mid_q_entry *mid_entry; |
75 | 77 | ||
@@ -102,8 +104,8 @@ void cifs_dump_mids(struct TCP_Server_Info *server) | |||
102 | } | 104 | } |
103 | } | 105 | } |
104 | spin_unlock(&GlobalMid_Lock); | 106 | spin_unlock(&GlobalMid_Lock); |
105 | } | ||
106 | #endif /* CONFIG_CIFS_DEBUG2 */ | 107 | #endif /* CONFIG_CIFS_DEBUG2 */ |
108 | } | ||
107 | 109 | ||
108 | #ifdef CONFIG_PROC_FS | 110 | #ifdef CONFIG_PROC_FS |
109 | static int cifs_debug_data_proc_show(struct seq_file *m, void *v) | 111 | static int cifs_debug_data_proc_show(struct seq_file *m, void *v) |