From: Marek Vasut Date: Fri, 23 Sep 2011 19:13:35 +0000 (+0200) Subject: ASIX: Fix buffer access in asix_get_phy_addr() X-Git-Tag: v2011.09~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ed1eb6f55c27adf26c8be2d5b079969de1057f9;p=u-boot ASIX: Fix buffer access in asix_get_phy_addr() Signed-off-by: Marek Vasut --- diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 9b012e4a66..2f116c0cb6 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -219,7 +219,7 @@ static inline int asix_get_phy_addr(struct ueth_data *dev) debug("Error reading PHYID register: %02x\n", ret); goto out; } - debug("asix_get_phy_addr() returning 0x%04x\n", *((__le16 *)buf)); + debug("asix_get_phy_addr() returning 0x%02x%02x\n", buf[0], buf[1]); ret = buf[1]; out: