diff mbox series

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

Message ID 20230718123740.74512-2-jianhui.lee@canonical.com
State New
Headers show
Series remove debug kernel notice in dmesg caused by trace_printk() | expand

Commit Message

Jian Hui Lee July 18, 2023, 12:37 p.m. UTC
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@canonical.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);
 			}
 		}