Commit 49bd196d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: serial: remove port number from generic-driver debug

Remove redundant port number from debug output (already printed as part
of device name).
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b03f7f7
...@@ -272,8 +272,7 @@ static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, ...@@ -272,8 +272,7 @@ static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port,
if (!test_and_clear_bit(index, &port->read_urbs_free)) if (!test_and_clear_bit(index, &port->read_urbs_free))
return 0; return 0;
dev_dbg(&port->dev, "%s - port %d, urb %d\n", __func__, dev_dbg(&port->dev, "%s - urb %d\n", __func__, index);
port->number, index);
res = usb_submit_urb(port->read_urbs[index], mem_flags); res = usb_submit_urb(port->read_urbs[index], mem_flags);
if (res) { if (res) {
...@@ -347,8 +346,8 @@ void usb_serial_generic_read_bulk_callback(struct urb *urb) ...@@ -347,8 +346,8 @@ void usb_serial_generic_read_bulk_callback(struct urb *urb)
} }
set_bit(i, &port->read_urbs_free); set_bit(i, &port->read_urbs_free);
dev_dbg(&port->dev, "%s - port %d, urb %d, len %d\n", dev_dbg(&port->dev, "%s - urb %d, len %d\n", __func__, i,
__func__, port->number, i, urb->actual_length); urb->actual_length);
if (urb->status) { if (urb->status) {
dev_dbg(&port->dev, "%s - non-zero urb status: %d\n", dev_dbg(&port->dev, "%s - non-zero urb status: %d\n",
...@@ -473,8 +472,7 @@ void usb_serial_handle_dcd_change(struct usb_serial_port *usb_port, ...@@ -473,8 +472,7 @@ void usb_serial_handle_dcd_change(struct usb_serial_port *usb_port,
{ {
struct tty_port *port = &usb_port->port; struct tty_port *port = &usb_port->port;
dev_dbg(&usb_port->dev, "%s - port %d, status %d\n", __func__, dev_dbg(&usb_port->dev, "%s - status %d\n", __func__, status);
usb_port->number, status);
if (status) if (status)
wake_up_interruptible(&port->open_wait); wake_up_interruptible(&port->open_wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment