linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: usb: lan78xx: Fix error message format specifier
@ 2019-12-13 16:33 Cristian Birsan
  2019-12-15 19:32 ` Jakub Kicinski
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Birsan @ 2019-12-13 16:33 UTC (permalink / raw)
  To: woojung.huh, UNGLinuxDriver, davem
  Cc: netdev, linux-usb, linux-kernel, Cristian Birsan

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>
---
 drivers/net/usb/lan78xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: usb: lan78xx: Fix error message format specifier
  2019-12-13 16:33 [PATCH] net: usb: lan78xx: Fix error message format specifier Cristian Birsan
@ 2019-12-15 19:32 ` Jakub Kicinski
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2019-12-15 19:32 UTC (permalink / raw)
  To: Cristian Birsan
  Cc: woojung.huh, UNGLinuxDriver, davem, netdev, linux-usb, linux-kernel

On Fri, 13 Dec 2019 18:33:11 +0200, Cristian Birsan wrote:
> 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>

Applied to net, thank you!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-15 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 16:33 [PATCH] net: usb: lan78xx: Fix error message format specifier Cristian Birsan
2019-12-15 19:32 ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).