summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-04-16 17:21:53 +0200
committerSteve French <sfrench@us.ibm.com>2009-04-17 03:26:50 +0200
commit313fecfa69bbad0a10d3313a50a89d3064f47ce1 (patch)
treebf75ff66a0e629af493b1a6f2d1b6148569b6b4a /fs/cifs/connect.c
parentcifs: fix buffer size for tcon->nativeFileSystem field (diff)
downloadlinux-313fecfa69bbad0a10d3313a50a89d3064f47ce1.tar.xz
linux-313fecfa69bbad0a10d3313a50a89d3064f47ce1.zip
cifs: add cFYI messages with some of the saved strings from ssetup/tcon
...to make it easier to find problems in this area in the future. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 1a93604d98f6..4a04ecdc1b76 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3757,11 +3757,14 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
kfree(tcon->nativeFileSystem);
tcon->nativeFileSystem =
kzalloc((4 * length) + 2, GFP_KERNEL);
- if (tcon->nativeFileSystem)
+ if (tcon->nativeFileSystem) {
cifs_strfromUCS_le(
tcon->nativeFileSystem,
(__le16 *) bcc_ptr,
length, nls_codepage);
+ cFYI(1, ("nativeFileSystem=%s",
+ tcon->nativeFileSystem));
+ }
bcc_ptr += (2 * length) + 2;
}
/* else do not bother copying these information fields*/