diff options
author | Tobias Herzog <t-herzog@gmx.de> | 2017-03-30 23:15:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-01 12:05:03 +0300 |
commit | 2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072 (patch) | |
tree | 81f1bb9f149864b472293cf916ba781bb006c5c4 /drivers/usb/class | |
parent | ea2583529cd17ab313dfe3cabf2215f38c6399a7 (diff) | |
download | linux-2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072.tar.xz |
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 <t-herzog@gmx.de>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |