From: Tobias Herzog Date: Thu, 30 Mar 2017 20:15:12 +0000 (+0200) Subject: cdc-acm: log message for serial state notification X-Git-Tag: v4.12-rc1~97^2~58 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072;p=karo-tx-linux.git cdc-acm: log message for serial state notification Adds a similar log message to USB_CDC_NOTIFY_SERIAL_STATE as it is already done with USB_CDC_NOTIFY_NETWORK_CONNECTION. Signed-off-by: Tobias Herzog Acked-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index eb854dd4ed5b..5357d83bbda2 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -305,6 +305,8 @@ static void acm_process_notification(struct acm *acm, unsigned char *buf) } newctrl = get_unaligned_le16(data); + dev_dbg(&acm->control->dev, + "%s - serial state: 0x%x\n", __func__, newctrl); if (!acm->clocal && (acm->ctrlin & ~newctrl & ACM_CTRL_DCD)) { dev_dbg(&acm->control->dev,