]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
thunderbolt: Use decimal port number in control and tunnel logs too
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 5 May 2022 10:58:04 +0000 (13:58 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 17 Jan 2023 09:36:39 +0000 (11:36 +0200)
Use decimal number instead of hex in port numbers as we have been doing
with other logging functions too. This makes the output more consistent.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/ctl.c
drivers/thunderbolt/tunnel.c

index 0c661a706160fe579e7e64f4d692691d41cf8380..25f7868257de3fccb95aa085b82a9367ea1b92ba 100644 (file)
@@ -754,7 +754,7 @@ int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug)
                .pg = unplug ? TB_CFG_ERROR_PG_HOT_UNPLUG
                             : TB_CFG_ERROR_PG_HOT_PLUG,
        };
-       tb_ctl_dbg(ctl, "acking hot %splug event on %llx:%x\n",
+       tb_ctl_dbg(ctl, "acking hot %splug event on %llx:%u\n",
                   unplug ? "un" : "", route, port);
        return tb_ctl_tx(ctl, &pkg, sizeof(pkg), TB_CFG_PKG_ERROR);
 }
index 2c3cf7fc3357150d139002b7c29b55a5c1a23809..62a2d0eb1c5c2b34b5664e4f43d8ce1bf43cf075 100644 (file)
@@ -49,7 +49,7 @@ static const char * const tb_tunnel_names[] = { "PCI", "DP", "DMA", "USB3" };
 #define __TB_TUNNEL_PRINT(level, tunnel, fmt, arg...)                   \
        do {                                                            \
                struct tb_tunnel *__tunnel = (tunnel);                  \
-               level(__tunnel->tb, "%llx:%x <-> %llx:%x (%s): " fmt,   \
+               level(__tunnel->tb, "%llx:%u <-> %llx:%u (%s): " fmt,   \
                      tb_route(__tunnel->src_port->sw),                 \
                      __tunnel->src_port->port,                         \
                      tb_route(__tunnel->dst_port->sw),                 \