Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Oliver Neukum and committed by
Greg Kroah-Hartman
ce8bb344 ad764c49

+10 -10
+10 -10
drivers/usb/class/cdc-wdm.c
··· 171 171 switch (status) { 172 172 case -ENOENT: 173 173 dev_dbg(&desc->intf->dev, 174 - "nonzero urb status received: -ENOENT"); 174 + "nonzero urb status received: -ENOENT\n"); 175 175 goto skip_error; 176 176 case -ECONNRESET: 177 177 dev_dbg(&desc->intf->dev, 178 - "nonzero urb status received: -ECONNRESET"); 178 + "nonzero urb status received: -ECONNRESET\n"); 179 179 goto skip_error; 180 180 case -ESHUTDOWN: 181 181 dev_dbg(&desc->intf->dev, 182 - "nonzero urb status received: -ESHUTDOWN"); 182 + "nonzero urb status received: -ESHUTDOWN\n"); 183 183 goto skip_error; 184 184 case -EPIPE: 185 185 dev_dbg(&desc->intf->dev, ··· 284 284 switch (dr->bNotificationType) { 285 285 case USB_CDC_NOTIFY_RESPONSE_AVAILABLE: 286 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 288 le16_to_cpu(dr->wIndex), le16_to_cpu(dr->wLength)); 289 289 break; 290 290 291 291 case USB_CDC_NOTIFY_NETWORK_CONNECTION: 292 292 293 293 dev_dbg(&desc->intf->dev, 294 - "NOTIFY_NETWORK_CONNECTION %s network", 294 + "NOTIFY_NETWORK_CONNECTION %s network\n", 295 295 dr->wValue ? "connected to" : "disconnected from"); 296 296 goto exit; 297 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 299 urb->actual_length); 300 300 goto exit; 301 301 default: ··· 314 314 && !test_bit(WDM_DISCONNECTING, &desc->flags) 315 315 && !test_bit(WDM_SUSPENDING, &desc->flags)) { 316 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 319 spin_unlock(&desc->iuspin); 320 320 if (rv < 0) { ··· 456 456 rv = usb_translate_errors(rv); 457 457 goto out_free_mem_pm; 458 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 460 le16_to_cpu(req->wIndex)); 461 461 } 462 462 ··· 573 573 } 574 574 575 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 577 clear_bit(WDM_READ, &desc->flags); 578 578 rv = service_outstanding_interrupt(desc); 579 579 spin_unlock_irq(&desc->iuspin); ··· 723 723 724 724 if (!desc->count) { 725 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 727 kill_urbs(desc); 728 728 spin_lock_irq(&desc->iuspin); 729 729 desc->resp_count = 0;