summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Birsan <cristian.birsan@microchip.com>2019-12-13 18:33:11 +0200
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-12-15 11:30:59 -0800
commit858ce8ca62ea1530f2779d0e3f934b0176e663c3 (patch)
tree0bf7e8f0b506777c72f74de02a346d57405b2223
parent479a0d1376f6d97c60871442911f1394d4446a25 (diff)
net: usb: lan78xx: Fix error message format specifier
Display the return code as decimal integer. Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
-rw-r--r--drivers/net/usb/lan78xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index d7bf1918ca62..f940dc6485e5 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -511,7 +511,7 @@ static int lan78xx_read_stats(struct lan78xx_net *dev,
}
} else {
netdev_warn(dev->net,
- "Failed to read stat ret = 0x%x", ret);
+ "Failed to read stat ret = %d", ret);
}
kfree(stats);