Subject: [PATCH net] net: stmmac: Debug print

From: Jose Abreu <[email-masked]>
Date: Mon, 22 Jul 2019 11:52:28 +0200

Signed-off-by: Jose Abreu <[email-masked]>

---
Cc: Giuseppe Cavallaro <[email-masked]>
Cc: Alexandre Torgue <[email-masked]>
Cc: Jose Abreu <[email-masked]>
Cc: "David S. Miller" <[email-masked]>
Cc: Maxime Coquelin <[email-masked]>
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 0ac79f3e2cee..7a6920098dd0 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -3433,6 +3433,10 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
 			dma_sync_single_for_device(priv->device, buf->addr,
 						   frame_len, DMA_FROM_DEVICE);
 
+			pr_info("%s: paddr=0x%llx, vaddr=0x%llx, len=%d", __func__,
+					buf->addr, page_address(buf->page),
+					frame_len);
+
 			if (netif_msg_pktdata(priv)) {
 				netdev_dbg(priv->dev, "frame received (%dbytes)",
 					   frame_len);
-- 
2.7.4