mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
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>
This commit is contained in:
parent
fd7ff36d6a
commit
0b238583ac
@ -279,7 +279,7 @@ static int cp210x_get_config(struct usb_serial_port *port, u8 request,
|
|||||||
|
|
||||||
if (result != size) {
|
if (result != size) {
|
||||||
dbg("%s - Unable to send config request, "
|
dbg("%s - Unable to send config request, "
|
||||||
"request=0x%x size=%d result=%d\n",
|
"request=0x%x size=%d result=%d",
|
||||||
__func__, request, size, result);
|
__func__, request, size, result);
|
||||||
if (result > 0)
|
if (result > 0)
|
||||||
result = -EPROTO;
|
result = -EPROTO;
|
||||||
@ -333,7 +333,7 @@ static int cp210x_set_config(struct usb_serial_port *port, u8 request,
|
|||||||
|
|
||||||
if ((size > 2 && result != size) || result < 0) {
|
if ((size > 2 && result != size) || result < 0) {
|
||||||
dbg("%s - Unable to send request, "
|
dbg("%s - Unable to send request, "
|
||||||
"request=0x%x size=%d result=%d\n",
|
"request=0x%x size=%d result=%d",
|
||||||
__func__, request, size, result);
|
__func__, request, size, result);
|
||||||
if (result > 0)
|
if (result > 0)
|
||||||
result = -EPROTO;
|
result = -EPROTO;
|
||||||
@ -636,13 +636,13 @@ static void cp210x_set_termios(struct tty_struct *tty,
|
|||||||
default:
|
default:
|
||||||
dbg("cp210x driver does not "
|
dbg("cp210x driver does not "
|
||||||
"support the number of bits requested,"
|
"support the number of bits requested,"
|
||||||
" using 8 bit mode\n");
|
" using 8 bit mode");
|
||||||
bits |= BITS_DATA_8;
|
bits |= BITS_DATA_8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
||||||
dbg("Number of data bits requested "
|
dbg("Number of data bits requested "
|
||||||
"not supported by device\n");
|
"not supported by device");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cflag & (PARENB|PARODD|CMSPAR)) !=
|
if ((cflag & (PARENB|PARODD|CMSPAR)) !=
|
||||||
@ -669,8 +669,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
||||||
dbg("Parity mode not supported "
|
dbg("Parity mode not supported by device");
|
||||||
"by device\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) {
|
if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) {
|
||||||
@ -685,7 +684,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
|
|||||||
}
|
}
|
||||||
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
|
||||||
dbg("Number of stop bits requested "
|
dbg("Number of stop bits requested "
|
||||||
"not supported by device\n");
|
"not supported by device");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) {
|
if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user