Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1613447
| From | Tobias Herzog <t-herzog@gmx.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 3/4] cdc-acm: log message for serial state notification |
| Date | 2017-03-30 22:20 +0200 |
| Message-ID | <tqOI1-3e5-7@gated-at.bofh.it> (permalink) |
| References | <tl15f-5mY-9@gated-at.bofh.it> <tqOI1-3e5-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
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 58efa15..c784319 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -304,6 +304,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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v3 3/4] cdc-acm: log message for serial state notification Tobias Herzog <t-herzog@gmx.de> - 2017-03-30 22:20 +0200 Re: [PATCH v3 3/4] cdc-acm: log message for serial state notification Oliver Neukum <oneukum@suse.com> - 2017-03-31 11:40 +0200
csiph-web