Skip to content

Commit

Permalink
smsc75xx: add more information to register io failure warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Fillod <fillods@users.sf.net>
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Steve Glendinning authored and David S. Miller committed May 1, 2012
1 parent cb8722d commit 4f49add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/smsc75xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int __must_check smsc75xx_read_reg(struct usbnet *dev, u32 index,

if (unlikely(ret < 0))
netdev_warn(dev->net,
"Failed to read register index 0x%08x", index);
"Failed to read reg index 0x%08x: %d", index, ret);

le32_to_cpus(buf);
*data = *buf;
Expand Down Expand Up @@ -128,7 +128,7 @@ static int __must_check smsc75xx_write_reg(struct usbnet *dev, u32 index,

if (unlikely(ret < 0))
netdev_warn(dev->net,
"Failed to write register index 0x%08x", index);
"Failed to write reg index 0x%08x: %d", index, ret);

kfree(buf);

Expand Down

0 comments on commit 4f49add

Please sign in to comment.