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 <t-her...@gmx.de>
---
 drivers/usb/class/cdc-acm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index a7c8878..8fcd036 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -303,6 +303,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,
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to