Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7607e99 authored by Guang Jian Zeng's avatar Guang Jian Zeng
Browse files

net: usb: rmnet_usb_data: Disable too much logspam



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: default avatarGuang Jian Zeng <gzeng@codeaurora.org>
parent 46fe9155
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -467,8 +467,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;
	}