Skip to contentSkip to conversation

drivers/net/ftgmac100.c: Fix a debug print

PATCH New Tom Rini 1 participant 1 message Jul 18, 2025 Network drivers

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 drivers/net/ftgmac100.c: Fix a debug print

In the debug print in ftgmac100_send we want to say where the packet is in memory and what the length is, so use %p to print that.

---
 drivers/net/ftgmac100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ftgmac100.c +1 -1
index f5ea2e72d1bb..33d1f7da3d76 100644
@@ -546,7 +546,7 @@ static int ftgmac100_send(struct udevice *dev, void *packet, int length)
 		return -EPERM;
 	}
 
-	debug("%s(%x, %x)\n", __func__, (int)packet, length);
+	debug("%s(%p, %x)\n", __func__, packet, length);
 
 	length = (length < ETH_ZLEN) ? ETH_ZLEN : length;
 
Signature · 1 line
2.43.0