]> Git Repo - u-boot.git/commitdiff
eth: asix88179: Print packet length properly
authorMateusz Kulikowski <[email protected]>
Thu, 31 Mar 2016 21:12:22 +0000 (23:12 +0200)
committerTom Rini <[email protected]>
Fri, 1 Apr 2016 21:18:10 +0000 (17:18 -0400)
Debug printf used '%u' to print size_t variable.
This caused warnings on 64-bit machines.

Signed-off-by: Mateusz Kulikowski <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/usb/eth/asix88179.c

index cf4085d76572c986c268ce06f3ab97e8b30dab9b..5e1ea8693b0beabe6714c64a53321c6df0bce1d2 100644 (file)
@@ -497,7 +497,7 @@ static int asix_send(struct eth_device *eth, void *packet, int length)
                                length + sizeof(packet_len) + sizeof(tx_hdr2),
                                &actual_len,
                                USB_BULK_SEND_TIMEOUT);
-       debug("Tx: len = %u, actual = %u, err = %d\n",
+       debug("Tx: len = %zu, actual = %u, err = %d\n",
              length + sizeof(packet_len), actual_len, err);
 
        return err;
This page took 0.035445 seconds and 4 git commands to generate.