summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2017-07-08 14:17:37 -0700
committerSteve French <smfrench@gmail.com>2017-07-08 17:23:10 -0500
commit4395d484b98154b28f895b722681710bdd40376c (patch)
tree3b953ca52caa3d0357434bd8b8d4498f702bab6f /fs/cifs
parent366ed846df607a79b4d9b52b097c01f9d53b9d2a (diff)
downloadlinux-stable-4395d484b98154b28f895b722681710bdd40376c.tar.gz
linux-stable-4395d484b98154b28f895b722681710bdd40376c.tar.bz2
linux-stable-4395d484b98154b28f895b722681710bdd40376c.zip
CIFS: Display SMB2 error codes in the hex format
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/smb2maperror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2maperror.c b/fs/cifs/smb2maperror.c
index 3030a9dfb0dd..7ca9808a0daa 100644
--- a/fs/cifs/smb2maperror.c
+++ b/fs/cifs/smb2maperror.c
@@ -2475,8 +2475,8 @@ map_smb2_to_linux_error(char *buf, bool log_err)
/* on error mapping not found - return EIO */
- cifs_dbg(FYI, "Mapping SMB2 status code %d to POSIX err %d\n",
- smb2err, rc);
+ cifs_dbg(FYI, "Mapping SMB2 status code 0x%08x to POSIX err %d\n",
+ __le32_to_cpu(smb2err), rc);
return rc;
}