summaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorTobias Herzog <t-herzog@gmx.de>2017-03-30 22:15:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-01 11:05:03 +0200
commit2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072 (patch)
tree81f1bb9f149864b472293cf916ba781bb006c5c4 /drivers/usb/class
parentea2583529cd17ab313dfe3cabf2215f38c6399a7 (diff)
downloadlinux-2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072.tar.gz
linux-2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072.tar.bz2
linux-2d6dfd17aefb6e2376ba32d11bc2e5b6c961f072.zip
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.c2
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,