aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2014-08-02 22:16:48 -0400
committerSteve French <smfrench@gmail.com>2014-08-02 22:16:48 -0400
commit59b04c5df75bd715002bb535930ae1982a739269 (patch)
tree8ef4ccc086a0307cfe70fc193ba128482506ec98 /fs/cifs/misc.c
parent2075cf0b71bfffc4942e232f1487ac98bdfb7bf5 (diff)
[CIFS] Fix incorrect hex vs. decimal in some debug print statements
Joe Perches and Hans Wennborg noticed that various places in the kernel were printing decimal numbers with 0x prefix. printk("0x%d") or equivalent This fixes the instances of this in the cifs driver. CC: Hans Wennborg <hans@hanshq.net> CC: Joe Perches <joe@perches.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r--fs/cifs/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 64997a04ab59..e65e17b3d484 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -423,7 +423,7 @@ is_valid_oplock_break(char *buffer, struct TCP_Server_Info *srv)
423 return true; 423 return true;
424 } 424 }
425 if (pSMBr->hdr.Status.CifsError) { 425 if (pSMBr->hdr.Status.CifsError) {
426 cifs_dbg(FYI, "notify err 0x%d\n", 426 cifs_dbg(FYI, "notify err 0x%x\n",
427 pSMBr->hdr.Status.CifsError); 427 pSMBr->hdr.Status.CifsError);
428 return true; 428 return true;
429 } 429 }
@@ -450,7 +450,7 @@ is_valid_oplock_break(char *buffer, struct TCP_Server_Info *srv)
450 if (pSMB->hdr.WordCount != 8) 450 if (pSMB->hdr.WordCount != 8)
451 return false; 451 return false;
452 452
453 cifs_dbg(FYI, "oplock type 0x%d level 0x%d\n", 453 cifs_dbg(FYI, "oplock type 0x%x level 0x%x\n",
454 pSMB->LockType, pSMB->OplockLevel); 454 pSMB->LockType, pSMB->OplockLevel);
455 if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE)) 455 if (!(pSMB->LockType & LOCKING_ANDX_OPLOCK_RELEASE))
456 return false; 456 return false;