]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cifs: print TIDs as hex
authorEnzo Matsumiya <ematsumiya@suse.de>
Wed, 18 May 2022 14:41:04 +0000 (11:41 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:41:13 +0000 (07:41 +0200)
[ Upstream commit 71081e7ac16c93acdd18afa65daa468620bb1b64 ]

Makes these debug messages easier to read

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: b4885bd5935b ("cifs: avoid NULL pointer dereference in dbg call")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/connect.c
fs/cifs/smb2misc.c

index a3c0e6a4e484758dbd38c39a9008a7a939aa45e8..2c0522d97e037d9b9dd557d20ea2f9ceb13cdacb 100644 (file)
@@ -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:
index 64887856331ae5b8a98a1637091692d76a1ad9ef..d21b27e68f2a8f457357c76891841386b2fff13c 100644 (file)
@@ -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;