Skip to contentSkip to conversation

cifs: cFYI the entire error code in map_smb_to_linux_error

PATCH New Jeff Layton 1 participant 1 message Jan 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: cFYI the entire error code in map_smb_to_linux_error

We currently only print the DOS error part.

---
 fs/cifs/netmisc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/cifs/netmisc.c +2 -2
index 9aad47a..6783ce6 100644
@@ -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 */
Signature · 1 line
1.7.3.4