summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>2016-03-31 23:12:22 +0200
committerTom Rini <trini@konsulko.com>2016-04-01 17:18:10 -0400
commit64160a545d79aefc8b17590532332836ff409883 (patch)
tree7f1de562f2ba84d2b620a047b0634ad5d3c5e138 /drivers/usb
parentd3d844f84acf3d079959894709607188620989c5 (diff)
downloadu-boot-imx-64160a545d79aefc8b17590532332836ff409883.zip
u-boot-imx-64160a545d79aefc8b17590532332836ff409883.tar.gz
u-boot-imx-64160a545d79aefc8b17590532332836ff409883.tar.bz2
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 <mateusz.kulikowski@gmail.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/eth/asix88179.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c
index cf4085d..5e1ea86 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;