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>
master
Mateusz Kulikowski 9 years ago committed by Tom Rini
parent d3d844f84a
commit 64160a545d
  1. 2
      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;

Loading…
Cancel
Save