diff options
| author | Johan Hovold <jhovold@gmail.com> | 2012-01-15 18:36:47 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 17:31:04 -0500 |
| commit | 0b238583ac8db66762bba021de1b7c60b6bc29ad (patch) | |
| tree | 3c637e72a052cc54a68a0e70bc380545778e046d /drivers/usb | |
| parent | fd7ff36d6a3f6413f838a2037b957b0e33ba9056 (diff) | |
USB: cp210x: fix debug output
Remove superfluous newlines from debug statements.
Remove unnecessary line breaks.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: Preston Fick <preston.fick@silabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/serial/cp210x.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index fba1147ed916..92aadd889a6d 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
| @@ -279,7 +279,7 @@ static int cp210x_get_config(struct usb_serial_port *port, u8 request, | |||
| 279 | 279 | ||
| 280 | if (result != size) { | 280 | if (result != size) { |
| 281 | dbg("%s - Unable to send config request, " | 281 | dbg("%s - Unable to send config request, " |
| 282 | "request=0x%x size=%d result=%d\n", | 282 | "request=0x%x size=%d result=%d", |
| 283 | __func__, request, size, result); | 283 | __func__, request, size, result); |
| 284 | if (result > 0) | 284 | if (result > 0) |
| 285 | result = -EPROTO; | 285 | result = -EPROTO; |
| @@ -333,7 +333,7 @@ static int cp210x_set_config(struct usb_serial_port *port, u8 request, | |||
| 333 | 333 | ||
| 334 | if ((size > 2 && result != size) || result < 0) { | 334 | if ((size > 2 && result != size) || result < 0) { |
| 335 | dbg("%s - Unable to send request, " | 335 | dbg("%s - Unable to send request, " |
| 336 | "request=0x%x size=%d result=%d\n", | 336 | "request=0x%x size=%d result=%d", |
| 337 | __func__, request, size, result); | 337 | __func__, request, size, result); |
| 338 | if (result > 0) | 338 | if (result > 0) |
| 339 | result = -EPROTO; | 339 | result = -EPROTO; |
| @@ -636,13 +636,13 @@ static void cp210x_set_termios(struct tty_struct *tty, | |||
| 636 | default: | 636 | default: |
| 637 | dbg("cp210x driver does not " | 637 | dbg("cp210x driver does not " |
| 638 | "support the number of bits requested," | 638 | "support the number of bits requested," |
| 639 | " using 8 bit mode\n"); | 639 | " using 8 bit mode"); |
| 640 | bits |= BITS_DATA_8; | 640 | bits |= BITS_DATA_8; |
| 641 | break; | 641 | break; |
| 642 | } | 642 | } |
| 643 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) | 643 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) |
| 644 | dbg("Number of data bits requested " | 644 | dbg("Number of data bits requested " |
| 645 | "not supported by device\n"); | 645 | "not supported by device"); |
| 646 | } | 646 | } |
| 647 | 647 | ||
| 648 | if ((cflag & (PARENB|PARODD|CMSPAR)) != | 648 | if ((cflag & (PARENB|PARODD|CMSPAR)) != |
| @@ -669,8 +669,7 @@ static void cp210x_set_termios(struct tty_struct *tty, | |||
| 669 | } | 669 | } |
| 670 | } | 670 | } |
| 671 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) | 671 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) |
| 672 | dbg("Parity mode not supported " | 672 | dbg("Parity mode not supported by device"); |
| 673 | "by device\n"); | ||
| 674 | } | 673 | } |
| 675 | 674 | ||
| 676 | if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { | 675 | if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { |
| @@ -685,7 +684,7 @@ static void cp210x_set_termios(struct tty_struct *tty, | |||
| 685 | } | 684 | } |
| 686 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) | 685 | if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) |
| 687 | dbg("Number of stop bits requested " | 686 | dbg("Number of stop bits requested " |
| 688 | "not supported by device\n"); | 687 | "not supported by device"); |
| 689 | } | 688 | } |
| 690 | 689 | ||
| 691 | if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { | 690 | if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { |
