Skip to content

Commit

Permalink
net: usb: rmnet_usb_data: Disable too much logspam
Browse files Browse the repository at this point in the history
Many "rmnet_usb 1-1:1.6: [rmnet_usb0] error: rmnet_ioct
called for unsupported cmd" messages are output when doing
Embedded Rmnet communication. It is caused by receiving
unsupported commands in rmnet_ioctl function. This is not
an error condition, so downgrade to debug log level to quiet
messages appearing on console. Moreover, Change %d to %x
in this dev_dbg function call. %x will make it easier to
identify ioctl code since they are usually defined in hex
format in the header files.

Change-Id: I776e9ced0a8a042331d73ab0cfebacc33f61dfc6
CRs-fixed: 622875
Signed-off-by: Guang Jian Zeng <gzeng@codeaurora.org>
  • Loading branch information
Guang Jian Zeng authored and mdmower committed Feb 2, 2017
1 parent 1397cc0 commit 749f59b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/usb/rmnet_usb_data.c
Expand Up @@ -578,8 +578,7 @@ static int rmnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
break;

default:
dev_err(&unet->intf->dev, "[%s] error: "
"rmnet_ioct called for unsupported cmd[%d]",
dev_dbg(&unet->intf->dev, "[%s] error: rmnet_ioctl called for unsupported cmd[0x%x]\n",
dev->name, cmd);
return -EINVAL;
}
Expand Down

0 comments on commit 749f59b

Please sign in to comment.