diff options
author | Oliver Neukum <oneukum@suse.com> | 2016-08-16 09:12:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-09 08:13:24 -0400 |
commit | ce8bb344dffb493fbc80027a28d4f03c029d775e (patch) | |
tree | 2e3cca37cc2a65cfee4c8901cc1811c5cd22df91 /drivers/usb/class/cdc-wdm.c | |
parent | ad764c49f65ac171e493e6baf39bc8ba296ef376 (diff) |
cdc-wdm: add terminating newline
Debug messages should be properly terminated.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-wdm.c')
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index bf4bb58312fb..0a6369510f2d 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c | |||
@@ -171,15 +171,15 @@ static void wdm_in_callback(struct urb *urb) | |||
171 | switch (status) { | 171 | switch (status) { |
172 | case -ENOENT: | 172 | case -ENOENT: |
173 | dev_dbg(&desc->intf->dev, | 173 | dev_dbg(&desc->intf->dev, |
174 | "nonzero urb status received: -ENOENT"); | 174 | "nonzero urb status received: -ENOENT\n"); |
175 | goto skip_error; | 175 | goto skip_error; |
176 | case -ECONNRESET: | 176 | case -ECONNRESET: |
177 | dev_dbg(&desc->intf->dev, | 177 | dev_dbg(&desc->intf->dev, |
178 | "nonzero urb status received: -ECONNRESET"); | 178 | "nonzero urb status received: -ECONNRESET\n"); |
179 | goto skip_error; | 179 | goto skip_error; |
180 | case -ESHUTDOWN: | 180 | case -ESHUTDOWN: |
181 | dev_dbg(&desc->intf->dev, | 181 | dev_dbg(&desc->intf->dev, |
182 | "nonzero urb status received: -ESHUTDOWN"); | 182 | "nonzero urb status received: -ESHUTDOWN\n"); |
183 | goto skip_error; | 183 | goto skip_error; |
184 | case -EPIPE: | 184 | case -EPIPE: |
185 | dev_dbg(&desc->intf->dev, | 185 | dev_dbg(&desc->intf->dev, |
@@ -284,18 +284,18 @@ static void wdm_int_callback(struct urb *urb) | |||
284 | switch (dr->bNotificationType) { | 284 | switch (dr->bNotificationType) { |
285 | case USB_CDC_NOTIFY_RESPONSE_AVAILABLE: | 285 | case USB_CDC_NOTIFY_RESPONSE_AVAILABLE: |
286 | dev_dbg(&desc->intf->dev, | 286 | dev_dbg(&desc->intf->dev, |
287 | "NOTIFY_RESPONSE_AVAILABLE received: index %d len %d", | 287 | "NOTIFY_RESPONSE_AVAILABLE received: index %d len %d\n", |
288 | le16_to_cpu(dr->wIndex), le16_to_cpu(dr->wLength)); | 288 | le16_to_cpu(dr->wIndex), le16_to_cpu(dr->wLength)); |
289 | break; | 289 | break; |
290 | 290 | ||
291 | case USB_CDC_NOTIFY_NETWORK_CONNECTION: | 291 | case USB_CDC_NOTIFY_NETWORK_CONNECTION: |
292 | 292 | ||
293 | dev_dbg(&desc->intf->dev, | 293 | dev_dbg(&desc->intf->dev, |
294 | "NOTIFY_NETWORK_CONNECTION %s network", | 294 | "NOTIFY_NETWORK_CONNECTION %s network\n", |
295 | dr->wValue ? "connected to" : "disconnected from"); | 295 | dr->wValue ? "connected to" : "disconnected from"); |
296 | goto exit; | 296 | goto exit; |
297 | case USB_CDC_NOTIFY_SPEED_CHANGE: | 297 | case USB_CDC_NOTIFY_SPEED_CHANGE: |
298 | dev_dbg(&desc->intf->dev, "SPEED_CHANGE received (len %u)", | 298 | dev_dbg(&desc->intf->dev, "SPEED_CHANGE received (len %u)\n", |
299 | urb->actual_length); | 299 | urb->actual_length); |
300 | goto exit; | 300 | goto exit; |
301 | default: | 301 | default: |
@@ -314,7 +314,7 @@ static void wdm_int_callback(struct urb *urb) | |||
314 | && !test_bit(WDM_DISCONNECTING, &desc->flags) | 314 | && !test_bit(WDM_DISCONNECTING, &desc->flags) |
315 | && !test_bit(WDM_SUSPENDING, &desc->flags)) { | 315 | && !test_bit(WDM_SUSPENDING, &desc->flags)) { |
316 | rv = usb_submit_urb(desc->response, GFP_ATOMIC); | 316 | rv = usb_submit_urb(desc->response, GFP_ATOMIC); |
317 | dev_dbg(&desc->intf->dev, "submit response URB %d", rv); | 317 | dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); |
318 | } | 318 | } |
319 | spin_unlock(&desc->iuspin); | 319 | spin_unlock(&desc->iuspin); |
320 | if (rv < 0) { | 320 | if (rv < 0) { |
@@ -456,7 +456,7 @@ static ssize_t wdm_write | |||
456 | rv = usb_translate_errors(rv); | 456 | rv = usb_translate_errors(rv); |
457 | goto out_free_mem_pm; | 457 | goto out_free_mem_pm; |
458 | } else { | 458 | } else { |
459 | dev_dbg(&desc->intf->dev, "Tx URB has been submitted index=%d", | 459 | dev_dbg(&desc->intf->dev, "Tx URB has been submitted index=%d\n", |
460 | le16_to_cpu(req->wIndex)); | 460 | le16_to_cpu(req->wIndex)); |
461 | } | 461 | } |
462 | 462 | ||
@@ -573,7 +573,7 @@ retry: | |||
573 | } | 573 | } |
574 | 574 | ||
575 | if (!desc->reslength) { /* zero length read */ | 575 | if (!desc->reslength) { /* zero length read */ |
576 | dev_dbg(&desc->intf->dev, "zero length - clearing WDM_READ"); | 576 | dev_dbg(&desc->intf->dev, "zero length - clearing WDM_READ\n"); |
577 | clear_bit(WDM_READ, &desc->flags); | 577 | clear_bit(WDM_READ, &desc->flags); |
578 | rv = service_outstanding_interrupt(desc); | 578 | rv = service_outstanding_interrupt(desc); |
579 | spin_unlock_irq(&desc->iuspin); | 579 | spin_unlock_irq(&desc->iuspin); |
@@ -723,7 +723,7 @@ static int wdm_release(struct inode *inode, struct file *file) | |||
723 | 723 | ||
724 | if (!desc->count) { | 724 | if (!desc->count) { |
725 | if (!test_bit(WDM_DISCONNECTING, &desc->flags)) { | 725 | if (!test_bit(WDM_DISCONNECTING, &desc->flags)) { |
726 | dev_dbg(&desc->intf->dev, "wdm_release: cleanup"); | 726 | dev_dbg(&desc->intf->dev, "wdm_release: cleanup\n"); |
727 | kill_urbs(desc); | 727 | kill_urbs(desc); |
728 | spin_lock_irq(&desc->iuspin); | 728 | spin_lock_irq(&desc->iuspin); |
729 | desc->resp_count = 0; | 729 | desc->resp_count = 0; |