]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
drivers/net/ftgmac100.c: Fix a debug print
authorTom Rini <trini@konsulko.com>
Fri, 18 Jul 2025 01:15:34 +0000 (19:15 -0600)
committerJerome Forissier <jerome.forissier@linaro.org>
Fri, 1 Aug 2025 07:30:47 +0000 (09:30 +0200)
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.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/net/ftgmac100.c

index f5ea2e72d1bbd401faefffaee0d118b61e253fdf..33d1f7da3d768f8090184962f1ce7dd826c1a6ea 100644 (file)
@@ -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;