mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
USB: serial: kl5kusb105: make logging less verbose
Replace a couple of dev_info with dev_dbg and remove another. Also use the port device for logging, and include a radix prefix when logging the baudrate. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
7c61b0d5e8
commit
0546579330
1 changed files with 8 additions and 8 deletions
|
@ -143,10 +143,12 @@ static int klsi_105_chg_port_settings(struct usb_serial_port *port,
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
dev_err(&port->dev,
|
dev_err(&port->dev,
|
||||||
"Change port settings failed (error = %d)\n", rc);
|
"Change port settings failed (error = %d)\n", rc);
|
||||||
dev_info(&port->serial->dev->dev,
|
|
||||||
"%d byte block, baudrate %x, databits %d, u1 %d, u2 %d\n",
|
dev_dbg(&port->dev,
|
||||||
settings->pktlen, settings->baudrate, settings->databits,
|
"pktlen %u, baudrate 0x%02x, databits %u, u1 %u, u2 %u\n",
|
||||||
settings->unknown1, settings->unknown2);
|
settings->pktlen, settings->baudrate, settings->databits,
|
||||||
|
settings->unknown1, settings->unknown2);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,8 +177,6 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
|
||||||
u8 *status_buf;
|
u8 *status_buf;
|
||||||
__u16 status;
|
__u16 status;
|
||||||
|
|
||||||
dev_info(&port->serial->dev->dev, "sending SIO Poll request\n");
|
|
||||||
|
|
||||||
status_buf = kmalloc(KLSI_STATUSBUF_LEN, GFP_KERNEL);
|
status_buf = kmalloc(KLSI_STATUSBUF_LEN, GFP_KERNEL);
|
||||||
if (!status_buf)
|
if (!status_buf)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -199,8 +199,8 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
|
||||||
} else {
|
} else {
|
||||||
status = get_unaligned_le16(status_buf);
|
status = get_unaligned_le16(status_buf);
|
||||||
|
|
||||||
dev_info(&port->serial->dev->dev, "read status %x %x\n",
|
dev_dbg(&port->dev, "read status %02x %02x\n",
|
||||||
status_buf[0], status_buf[1]);
|
status_buf[0], status_buf[1]);
|
||||||
|
|
||||||
*line_state_p = klsi_105_status2linestate(status);
|
*line_state_p = klsi_105_status2linestate(status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue