[SRU][Jammy:linux-intel-iotg][PATCH 1/2] UBUNTU: SAUCE: (no-up) net: stmmac: replace trace_printk with netif_dbg

Jian Hui Lee jianhui.lee at canonical.com
Tue Jul 18 12:37:39 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2028059

in the commit 8663a87766bc ("REVERTME: net: stmmac: introduce AF_XDP ZC TX HW timestamps"") uses trace_printk for debugging. replace it with netif_dbg.

Signed-off-by: Jian Hui Lee <jianhui.lee at canonical.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 7e8872d6e72d..ac243dbbad76 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -2653,7 +2653,7 @@ static int stmmac_tx_clean(struct stmmac_priv *priv, int budget, u32 queue)
 				ktime_t tx_hwtstamp = { 0 };
 
 				stmmac_get_tx_hwtstamp(priv, p, &tx_hwtstamp);
-				trace_printk("XDP TX HW TS %llu\n",
+				netif_dbg(priv, tx_done, priv->dev, "XDP TX HW TS %llu\n",
 					     tx_hwtstamp);
 			}
 		}
-- 
2.34.1




More information about the kernel-team mailing list