From: Enzo Matsumiya Date: Wed, 18 May 2022 14:41:04 +0000 (-0300) Subject: cifs: print TIDs as hex X-Git-Tag: v5.10.237~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cad91c15b8d0d02c713e15480a378733fa982758;p=thirdparty%2Fkernel%2Fstable.git cifs: print TIDs as hex [ Upstream commit 71081e7ac16c93acdd18afa65daa468620bb1b64 ] Makes these debug messages easier to read Signed-off-by: Enzo Matsumiya Reviewed-by: Paulo Alcantara (SUSE) Signed-off-by: Steve French Stable-dep-of: b4885bd5935b ("cifs: avoid NULL pointer dereference in dbg call") Signed-off-by: Sasha Levin --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a3c0e6a4e4847..2c0522d97e037 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2770,7 +2770,7 @@ cifs_setup_ipc(struct cifs_ses *ses, struct smb_vol *volume_info) goto out; } - cifs_dbg(FYI, "IPC tcon rc = %d ipc tid = %d\n", rc, tcon->tid); + cifs_dbg(FYI, "IPC tcon rc=%d ipc tid=0x%x\n", rc, tcon->tid); ses->tcon_ipc = tcon; out: diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 64887856331ae..d21b27e68f2a8 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -812,7 +812,7 @@ smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid, if (tcon->ses) server = tcon->ses->server; - cifs_server_dbg(FYI, "tid=%u: tcon is closing, skipping async close retry of fid %llu %llu\n", + cifs_server_dbg(FYI, "tid=0x%x: tcon is closing, skipping async close retry of fid %llu %llu\n", tcon->tid, persistent_fid, volatile_fid); return 0;