Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 759f3634 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

USB: serial: Remove unnecessary \n's from dbg uses



#define dbg adds the newline, messages shouldn't.
Converted dbg("%s", "some string") to dbg("some string")

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 815e173e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -612,7 +612,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
				baud);
				baud);
		if (cp210x_set_config_single(port, CP210X_SET_BAUDDIV,
		if (cp210x_set_config_single(port, CP210X_SET_BAUDDIV,
					((BAUD_RATE_GEN_FREQ + baud/2) / baud))) {
					((BAUD_RATE_GEN_FREQ + baud/2) / baud))) {
			dbg("Baud rate requested not supported by device\n");
			dbg("Baud rate requested not supported by device");
			baud = tty_termios_baud_rate(old_termios);
			baud = tty_termios_baud_rate(old_termios);
		}
		}
	}
	}
+1 −1
Original line number Original line Diff line number Diff line
@@ -391,7 +391,7 @@ static void cyberjack_read_bulk_callback(struct urb *urb)


	tty = tty_port_tty_get(&port->port);
	tty = tty_port_tty_get(&port->port);
	if (!tty) {
	if (!tty) {
		dbg("%s - ignoring since device not open\n", __func__);
		dbg("%s - ignoring since device not open", __func__);
		return;
		return;
	}
	}
	if (urb->actual_length) {
	if (urb->actual_length) {
+1 −1
Original line number Original line Diff line number Diff line
@@ -1836,7 +1836,7 @@ static int ftdi_write(struct tty_struct *tty, struct usb_serial_port *port,
	spin_lock_irqsave(&priv->tx_lock, flags);
	spin_lock_irqsave(&priv->tx_lock, flags);
	if (priv->tx_outstanding_urbs > URB_UPPER_LIMIT) {
	if (priv->tx_outstanding_urbs > URB_UPPER_LIMIT) {
		spin_unlock_irqrestore(&priv->tx_lock, flags);
		spin_unlock_irqrestore(&priv->tx_lock, flags);
		dbg("%s - write limit hit\n", __func__);
		dbg("%s - write limit hit", __func__);
		return 0;
		return 0;
	}
	}
	priv->tx_outstanding_urbs++;
	priv->tx_outstanding_urbs++;
+1 −1
Original line number Original line Diff line number Diff line
@@ -194,7 +194,7 @@ static int usb_serial_multi_urb_write(struct tty_struct *tty,
		if (port->urbs_in_flight >
		if (port->urbs_in_flight >
		    port->serial->type->max_in_flight_urbs) {
		    port->serial->type->max_in_flight_urbs) {
			spin_unlock_irqrestore(&port->lock, flags);
			spin_unlock_irqrestore(&port->lock, flags);
			dbg("%s - write limit hit\n", __func__);
			dbg("%s - write limit hit", __func__);
			return bwrite;
			return bwrite;
		}
		}
		port->tx_bytes_flight += towrite;
		port->tx_bytes_flight += towrite;
+4 −4
Original line number Original line Diff line number Diff line
@@ -1971,7 +1971,7 @@ static void process_rcvd_status(struct edgeport_serial *edge_serial,
			return;
			return;


		case IOSP_EXT_STATUS_RX_CHECK_RSP:
		case IOSP_EXT_STATUS_RX_CHECK_RSP:
			dbg("%s ========== Port %u CHECK_RSP Sequence = %02x =============\n", __func__, edge_serial->rxPort, byte3);
			dbg("%s ========== Port %u CHECK_RSP Sequence = %02x =============", __func__, edge_serial->rxPort, byte3);
			/* Port->RxCheckRsp = true; */
			/* Port->RxCheckRsp = true; */
			return;
			return;
		}
		}
@@ -2039,7 +2039,7 @@ static void process_rcvd_status(struct edgeport_serial *edge_serial,
		break;
		break;


	default:
	default:
		dbg("%s - Unrecognized IOSP status code %u\n", __func__, code);
		dbg("%s - Unrecognized IOSP status code %u", __func__, code);
		break;
		break;
	}
	}
	return;
	return;
@@ -2494,7 +2494,7 @@ static int calc_baud_rate_divisor(int baudrate, int *divisor)


		*divisor = custom;
		*divisor = custom;


		dbg("%s - Baud %d = %d\n", __func__, baudrate, custom);
		dbg("%s - Baud %d = %d", __func__, baudrate, custom);
		return 0;
		return 0;
	}
	}


@@ -2879,7 +2879,7 @@ static void load_application_firmware(struct edgeport_serial *edge_serial)
			break;
			break;


		case EDGE_DOWNLOAD_FILE_NONE:
		case EDGE_DOWNLOAD_FILE_NONE:
			dbg     ("No download file specified, skipping download\n");
			dbg("No download file specified, skipping download");
			return;
			return;


		default:
		default:
Loading