From: Mateusz Kulikowski Date: Thu, 31 Mar 2016 21:12:22 +0000 (+0200) Subject: eth: asix88179: Print packet length properly X-Git-Tag: v2016.05-rc1~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64160a545d79aefc8b17590532332836ff409883;p=u-boot eth: asix88179: Print packet length properly Debug printf used '%u' to print size_t variable. This caused warnings on 64-bit machines. Signed-off-by: Mateusz Kulikowski Acked-by: Marek Vasut Acked-by: Joe Hershberger --- diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c index cf4085d765..5e1ea8693b 100644 --- a/drivers/usb/eth/asix88179.c +++ b/drivers/usb/eth/asix88179.c @@ -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;