diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-03-12 14:09:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-03-12 15:44:50 -0400 |
commit | d9a38a8741fdffabc32e6d0943b1cdcf22712bec (patch) | |
tree | 4934a8e0cafad5aab967155b56bae9eb497d8d3d | |
parent | ca0400d2caf0d6f18445feea79c8c5a4ccf77e61 (diff) |
USB: serial: add missing newlines to dev_<level> messages.
Add missing newlines to dev_<level> messages.
Also make some messages less verbose where appropriate.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-rw-r--r-- | drivers/usb/serial/ch341.c | 6 | ||||
-rw-r--r-- | drivers/usb/serial/cyberjack.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/cypress_m8.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/iuu_phoenix.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/keyspan_pda.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/kl5kusb105.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/kobil_sct.c | 3 | ||||
-rw-r--r-- | drivers/usb/serial/mos7720.c | 12 | ||||
-rw-r--r-- | drivers/usb/serial/mos7840.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/quatech2.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/spcp8x5.c | 7 | ||||
-rw-r--r-- | drivers/usb/serial/symbolserial.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/ti_usb_3410_5052.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 4 |
14 files changed, 28 insertions, 30 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 82371f61f23d..2d72aa3564a3 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -323,11 +323,11 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
323 | if (r) | 323 | if (r) |
324 | goto out; | 324 | goto out; |
325 | 325 | ||
326 | dev_dbg(&port->dev, "%s - submitting interrupt urb", __func__); | 326 | dev_dbg(&port->dev, "%s - submitting interrupt urb\n", __func__); |
327 | r = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); | 327 | r = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); |
328 | if (r) { | 328 | if (r) { |
329 | dev_err(&port->dev, "%s - failed submitting interrupt urb," | 329 | dev_err(&port->dev, "%s - failed to submit interrupt urb: %d\n", |
330 | " error %d\n", __func__, r); | 330 | __func__, r); |
331 | ch341_close(port); | 331 | ch341_close(port); |
332 | goto out; | 332 | goto out; |
333 | } | 333 | } |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 0ac3b3b3236c..2916dea3ede8 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -220,7 +220,7 @@ static int cyberjack_write(struct tty_struct *tty, | |||
220 | result = usb_submit_urb(port->write_urb, GFP_ATOMIC); | 220 | result = usb_submit_urb(port->write_urb, GFP_ATOMIC); |
221 | if (result) { | 221 | if (result) { |
222 | dev_err(&port->dev, | 222 | dev_err(&port->dev, |
223 | "%s - failed submitting write urb, error %d", | 223 | "%s - failed submitting write urb, error %d\n", |
224 | __func__, result); | 224 | __func__, result); |
225 | /* Throw away data. No better idea what to do with it. */ | 225 | /* Throw away data. No better idea what to do with it. */ |
226 | priv->wrfilled = 0; | 226 | priv->wrfilled = 0; |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 634f0d6605ed..01bf53392819 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -279,7 +279,7 @@ static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) | |||
279 | * the generic firmware, but are not used with | 279 | * the generic firmware, but are not used with |
280 | * NMEA and SiRF protocols */ | 280 | * NMEA and SiRF protocols */ |
281 | dev_dbg(&port->dev, | 281 | dev_dbg(&port->dev, |
282 | "%s - failed setting baud rate, unsupported speed of %d on Earthmate GPS", | 282 | "%s - failed setting baud rate, unsupported speed of %d on Earthmate GPS\n", |
283 | __func__, new_rate); | 283 | __func__, new_rate); |
284 | return -1; | 284 | return -1; |
285 | } | 285 | } |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index d00dae17d520..5ad4a0fb4b26 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -1151,7 +1151,7 @@ static ssize_t vcc_mode_store(struct device *dev, | |||
1151 | goto fail_store_vcc_mode; | 1151 | goto fail_store_vcc_mode; |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | dev_dbg(dev, "%s: setting vcc_mode = %ld", __func__, v); | 1154 | dev_dbg(dev, "%s: setting vcc_mode = %ld\n", __func__, v); |
1155 | 1155 | ||
1156 | if ((v != 3) && (v != 5)) { | 1156 | if ((v != 3) && (v != 5)) { |
1157 | dev_err(dev, "%s - vcc_mode %ld is invalid\n", __func__, v); | 1157 | dev_err(dev, "%s - vcc_mode %ld is invalid\n", __func__, v); |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index e972412b614b..742d827f876c 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -189,7 +189,7 @@ exit: | |||
189 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 189 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
190 | if (retval) | 190 | if (retval) |
191 | dev_err(&port->dev, | 191 | dev_err(&port->dev, |
192 | "%s - usb_submit_urb failed with result %d", | 192 | "%s - usb_submit_urb failed with result %d\n", |
193 | __func__, retval); | 193 | __func__, retval); |
194 | } | 194 | } |
195 | 195 | ||
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index c88cc4966b23..d7440b7557af 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -201,7 +201,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port, | |||
201 | else { | 201 | else { |
202 | status = get_unaligned_le16(status_buf); | 202 | status = get_unaligned_le16(status_buf); |
203 | 203 | ||
204 | dev_info(&port->serial->dev->dev, "read status %x %x", | 204 | dev_info(&port->serial->dev->dev, "read status %x %x\n", |
205 | status_buf[0], status_buf[1]); | 205 | status_buf[0], status_buf[1]); |
206 | 206 | ||
207 | *line_state_p = klsi_105_status2linestate(status); | 207 | *line_state_p = klsi_105_status2linestate(status); |
@@ -464,7 +464,7 @@ static void klsi_105_set_termios(struct tty_struct *tty, | |||
464 | priv->cfg.baudrate = kl5kusb105a_sio_b115200; | 464 | priv->cfg.baudrate = kl5kusb105a_sio_b115200; |
465 | break; | 465 | break; |
466 | default: | 466 | default: |
467 | dev_dbg(dev, "KLSI USB->Serial converter: unsupported baudrate request, using default of 9600"); | 467 | dev_dbg(dev, "unsupported baudrate, using 9600\n"); |
468 | priv->cfg.baudrate = kl5kusb105a_sio_b9600; | 468 | priv->cfg.baudrate = kl5kusb105a_sio_b9600; |
469 | baud = 9600; | 469 | baud = 9600; |
470 | break; | 470 | break; |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 618c1c1f227e..fee242387f55 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -557,7 +557,8 @@ static int kobil_ioctl(struct tty_struct *tty, | |||
557 | ); | 557 | ); |
558 | 558 | ||
559 | dev_dbg(&port->dev, | 559 | dev_dbg(&port->dev, |
560 | "%s - Send reset_all_queues (FLUSH) URB returns: %i", __func__, result); | 560 | "%s - Send reset_all_queues (FLUSH) URB returns: %i\n", |
561 | __func__, result); | ||
561 | kfree(transfer_buffer); | 562 | kfree(transfer_buffer); |
562 | return (result < 0) ? -EIO: 0; | 563 | return (result < 0) ? -EIO: 0; |
563 | default: | 564 | default: |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 4eb277225a77..dfd728a263d2 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -209,7 +209,7 @@ static int write_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, | |||
209 | index, NULL, 0, MOS_WDR_TIMEOUT); | 209 | index, NULL, 0, MOS_WDR_TIMEOUT); |
210 | if (status < 0) | 210 | if (status < 0) |
211 | dev_err(&usbdev->dev, | 211 | dev_err(&usbdev->dev, |
212 | "mos7720: usb_control_msg() failed: %d", status); | 212 | "mos7720: usb_control_msg() failed: %d\n", status); |
213 | return status; | 213 | return status; |
214 | } | 214 | } |
215 | 215 | ||
@@ -240,7 +240,7 @@ static int read_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, | |||
240 | *data = *buf; | 240 | *data = *buf; |
241 | else if (status < 0) | 241 | else if (status < 0) |
242 | dev_err(&usbdev->dev, | 242 | dev_err(&usbdev->dev, |
243 | "mos7720: usb_control_msg() failed: %d", status); | 243 | "mos7720: usb_control_msg() failed: %d\n", status); |
244 | kfree(buf); | 244 | kfree(buf); |
245 | 245 | ||
246 | return status; | 246 | return status; |
@@ -399,7 +399,7 @@ static int write_parport_reg_nonblock(struct mos7715_parport *mos_parport, | |||
399 | &mos_parport->deferred_urbs); | 399 | &mos_parport->deferred_urbs); |
400 | spin_unlock_irqrestore(&mos_parport->listlock, flags); | 400 | spin_unlock_irqrestore(&mos_parport->listlock, flags); |
401 | tasklet_schedule(&mos_parport->urb_tasklet); | 401 | tasklet_schedule(&mos_parport->urb_tasklet); |
402 | dev_dbg(&usbdev->dev, "tasklet scheduled"); | 402 | dev_dbg(&usbdev->dev, "tasklet scheduled\n"); |
403 | return 0; | 403 | return 0; |
404 | } | 404 | } |
405 | 405 | ||
@@ -418,7 +418,7 @@ static int write_parport_reg_nonblock(struct mos7715_parport *mos_parport, | |||
418 | mutex_unlock(&serial->disc_mutex); | 418 | mutex_unlock(&serial->disc_mutex); |
419 | if (ret_val) { | 419 | if (ret_val) { |
420 | dev_err(&usbdev->dev, | 420 | dev_err(&usbdev->dev, |
421 | "%s: submit_urb() failed: %d", __func__, ret_val); | 421 | "%s: submit_urb() failed: %d\n", __func__, ret_val); |
422 | spin_lock_irqsave(&mos_parport->listlock, flags); | 422 | spin_lock_irqsave(&mos_parport->listlock, flags); |
423 | list_del(&urbtrack->urblist_entry); | 423 | list_del(&urbtrack->urblist_entry); |
424 | spin_unlock_irqrestore(&mos_parport->listlock, flags); | 424 | spin_unlock_irqrestore(&mos_parport->listlock, flags); |
@@ -656,7 +656,7 @@ static size_t parport_mos7715_write_compat(struct parport *pp, | |||
656 | parport_epilogue(pp); | 656 | parport_epilogue(pp); |
657 | if (retval) { | 657 | if (retval) { |
658 | dev_err(&mos_parport->serial->dev->dev, | 658 | dev_err(&mos_parport->serial->dev->dev, |
659 | "mos7720: usb_bulk_msg() failed: %d", retval); | 659 | "mos7720: usb_bulk_msg() failed: %d\n", retval); |
660 | return 0; | 660 | return 0; |
661 | } | 661 | } |
662 | return actual_len; | 662 | return actual_len; |
@@ -875,7 +875,7 @@ static void mos7715_interrupt_callback(struct urb *urb) | |||
875 | if (!(iir & 0x01)) { /* serial port interrupt pending */ | 875 | if (!(iir & 0x01)) { /* serial port interrupt pending */ |
876 | switch (iir & 0x0f) { | 876 | switch (iir & 0x0f) { |
877 | case SERIAL_IIR_RLS: | 877 | case SERIAL_IIR_RLS: |
878 | dev_dbg(dev, "Serial Port: Receiver status error or address bit detected in 9-bit mode\n\n"); | 878 | dev_dbg(dev, "Serial Port: Receiver status error or address bit detected in 9-bit mode\n"); |
879 | break; | 879 | break; |
880 | case SERIAL_IIR_CTI: | 880 | case SERIAL_IIR_CTI: |
881 | dev_dbg(dev, "Serial Port: Receiver time out\n"); | 881 | dev_dbg(dev, "Serial Port: Receiver time out\n"); |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index e9d967ff521b..393be562d875 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -522,11 +522,11 @@ static void mos7840_set_led_callback(struct urb *urb) | |||
522 | case -ENOENT: | 522 | case -ENOENT: |
523 | case -ESHUTDOWN: | 523 | case -ESHUTDOWN: |
524 | /* This urb is terminated, clean up */ | 524 | /* This urb is terminated, clean up */ |
525 | dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d", | 525 | dev_dbg(&urb->dev->dev, "%s - urb shutting down: %d\n", |
526 | __func__, urb->status); | 526 | __func__, urb->status); |
527 | break; | 527 | break; |
528 | default: | 528 | default: |
529 | dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d", | 529 | dev_dbg(&urb->dev->dev, "%s - nonzero urb status: %d\n", |
530 | __func__, urb->status); | 530 | __func__, urb->status); |
531 | } | 531 | } |
532 | } | 532 | } |
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 7725ed261ed6..504f5bff79c0 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c | |||
@@ -372,7 +372,7 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
372 | device_port, data, 2, QT2_USB_TIMEOUT); | 372 | device_port, data, 2, QT2_USB_TIMEOUT); |
373 | 373 | ||
374 | if (status < 0) { | 374 | if (status < 0) { |
375 | dev_err(&port->dev, "%s - open port failed %i", __func__, | 375 | dev_err(&port->dev, "%s - open port failed %i\n", __func__, |
376 | status); | 376 | status); |
377 | kfree(data); | 377 | kfree(data); |
378 | return status; | 378 | return status; |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 4ec04f73c800..ef0dbf0703c5 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -220,9 +220,9 @@ static int spcp8x5_get_msr(struct usb_serial_port *port, u8 *status) | |||
220 | GET_UART_STATUS, GET_UART_STATUS_TYPE, | 220 | GET_UART_STATUS, GET_UART_STATUS_TYPE, |
221 | 0, GET_UART_STATUS_MSR, buf, 1, 100); | 221 | 0, GET_UART_STATUS_MSR, buf, 1, 100); |
222 | if (ret < 0) | 222 | if (ret < 0) |
223 | dev_err(&port->dev, "failed to get modem status: %d", ret); | 223 | dev_err(&port->dev, "failed to get modem status: %d\n", ret); |
224 | 224 | ||
225 | dev_dbg(&port->dev, "0xc0:0x22:0:6 %d - 0x02%x", ret, *buf); | 225 | dev_dbg(&port->dev, "0xc0:0x22:0:6 %d - 0x02%x\n", ret, *buf); |
226 | *status = *buf; | 226 | *status = *buf; |
227 | kfree(buf); | 227 | kfree(buf); |
228 | 228 | ||
@@ -342,8 +342,7 @@ static void spcp8x5_set_termios(struct tty_struct *tty, | |||
342 | case 1000000: | 342 | case 1000000: |
343 | buf[0] = 0x0b; break; | 343 | buf[0] = 0x0b; break; |
344 | default: | 344 | default: |
345 | dev_err(&port->dev, "spcp825 driver does not support the " | 345 | dev_err(&port->dev, "unsupported baudrate, using 9600\n"); |
346 | "baudrate requested, using default of 9600.\n"); | ||
347 | } | 346 | } |
348 | 347 | ||
349 | /* Set Data Length : 00:5bit, 01:6bit, 10:7bit, 11:8bit */ | 348 | /* Set Data Length : 00:5bit, 01:6bit, 10:7bit, 11:8bit */ |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 9fa7dd413e83..8fceec7298e0 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -74,9 +74,7 @@ static void symbol_int_callback(struct urb *urb) | |||
74 | tty_insert_flip_string(&port->port, &data[1], data_length); | 74 | tty_insert_flip_string(&port->port, &data[1], data_length); |
75 | tty_flip_buffer_push(&port->port); | 75 | tty_flip_buffer_push(&port->port); |
76 | } else { | 76 | } else { |
77 | dev_dbg(&port->dev, | 77 | dev_dbg(&port->dev, "%s - short packet\n", __func__); |
78 | "Improper amount of data received from the device, " | ||
79 | "%d bytes", urb->actual_length); | ||
80 | } | 78 | } |
81 | 79 | ||
82 | exit: | 80 | exit: |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index ec7cea585663..3dd3ff8c50d3 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -293,7 +293,7 @@ static int ti_startup(struct usb_serial *serial) | |||
293 | int status; | 293 | int status; |
294 | 294 | ||
295 | dev_dbg(&dev->dev, | 295 | dev_dbg(&dev->dev, |
296 | "%s - product 0x%4X, num configurations %d, configuration value %d", | 296 | "%s - product 0x%4X, num configurations %d, configuration value %d\n", |
297 | __func__, le16_to_cpu(dev->descriptor.idProduct), | 297 | __func__, le16_to_cpu(dev->descriptor.idProduct), |
298 | dev->descriptor.bNumConfigurations, | 298 | dev->descriptor.bNumConfigurations, |
299 | dev->actconfig->desc.bConfigurationValue); | 299 | dev->actconfig->desc.bConfigurationValue); |
@@ -803,7 +803,7 @@ static void ti_set_termios(struct tty_struct *tty, | |||
803 | tty_encode_baud_rate(tty, baud, baud); | 803 | tty_encode_baud_rate(tty, baud, baud); |
804 | 804 | ||
805 | dev_dbg(&port->dev, | 805 | dev_dbg(&port->dev, |
806 | "%s - BaudRate=%d, wBaudRate=%d, wFlags=0x%04X, bDataBits=%d, bParity=%d, bStopBits=%d, cXon=%d, cXoff=%d, bUartMode=%d", | 806 | "%s - BaudRate=%d, wBaudRate=%d, wFlags=0x%04X, bDataBits=%d, bParity=%d, bStopBits=%d, cXon=%d, cXoff=%d, bUartMode=%d\n", |
807 | __func__, baud, config->wBaudRate, config->wFlags, | 807 | __func__, baud, config->wBaudRate, config->wFlags, |
808 | config->bDataBits, config->bParity, config->bStopBits, | 808 | config->bDataBits, config->bParity, config->bStopBits, |
809 | config->cXon, config->cXoff, config->bUartMode); | 809 | config->cXon, config->cXoff, config->bUartMode); |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 4c3aeaf56dc1..81fc0dfcfdcf 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -868,7 +868,7 @@ static int usb_serial_probe(struct usb_interface *interface, | |||
868 | max_endpoints = max(max_endpoints, (int)serial->num_ports); | 868 | max_endpoints = max(max_endpoints, (int)serial->num_ports); |
869 | serial->num_port_pointers = max_endpoints; | 869 | serial->num_port_pointers = max_endpoints; |
870 | 870 | ||
871 | dev_dbg(ddev, "setting up %d port structures for this device", max_endpoints); | 871 | dev_dbg(ddev, "setting up %d port structure(s)\n", max_endpoints); |
872 | for (i = 0; i < max_endpoints; ++i) { | 872 | for (i = 0; i < max_endpoints; ++i) { |
873 | port = kzalloc(sizeof(struct usb_serial_port), GFP_KERNEL); | 873 | port = kzalloc(sizeof(struct usb_serial_port), GFP_KERNEL); |
874 | if (!port) | 874 | if (!port) |
@@ -1033,7 +1033,7 @@ static int usb_serial_probe(struct usb_interface *interface, | |||
1033 | for (i = 0; i < num_ports; ++i) { | 1033 | for (i = 0; i < num_ports; ++i) { |
1034 | port = serial->port[i]; | 1034 | port = serial->port[i]; |
1035 | dev_set_name(&port->dev, "ttyUSB%d", port->minor); | 1035 | dev_set_name(&port->dev, "ttyUSB%d", port->minor); |
1036 | dev_dbg(ddev, "registering %s", dev_name(&port->dev)); | 1036 | dev_dbg(ddev, "registering %s\n", dev_name(&port->dev)); |
1037 | device_enable_async_suspend(&port->dev); | 1037 | device_enable_async_suspend(&port->dev); |
1038 | 1038 | ||
1039 | retval = device_add(&port->dev); | 1039 | retval = device_add(&port->dev); |