Skip to content

Commit

Permalink
cifs: cFYI the entire error code in map_smb_to_linux_error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Layton authored and Steve French committed Jan 14, 2011
1 parent 891cc22 commit 56c2430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/netmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 56c2430

Please sign in to comment.