]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
cifs: cFYI the entire error code in map_smb_to_linux_error
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Jan 2011 12:24:25 +0000 (07:24 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 14 Jan 2011 18:51:11 +0000 (18:51 +0000)
We currently only print the DOS error part.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/netmisc.c

index 9aad47a2d62f6d861035e1ce0b8b6876804aed61..6783ce6cdc895371d8edcfa9a79b06940223b5d5 100644 (file)
@@ -899,8 +899,8 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr)
        }
        /* else ERRHRD class errors or junk  - return EIO */
 
-       cFYI(1, "Mapping smb error code %d to POSIX err %d",
-                smberrcode, rc);
+       cFYI(1, "Mapping smb error code 0x%x to POSIX err %d",
+                le32_to_cpu(smb->Status.CifsError), rc);
 
        /* generic corrective action e.g. reconnect SMB session on
         * ERRbaduid could be added */