Skip to content

Commit

Permalink
USB: serial: quatech2: fix up unneeded printk() call
Browse files Browse the repository at this point in the history
It should be calling dev_err() instead of printk(KERN_INFO...) so this
change fixes that up properly.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Sep 18, 2012
1 parent 6c27ad8 commit 788a661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/quatech2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ static int qt2_write(struct tty_struct *tty,
data = write_urb->transfer_buffer;
spin_lock_irqsave(&port_priv->urb_lock, flags);
if (port_priv->urb_in_use == true) {
printk(KERN_INFO "qt2_write - urb is in use\n");
dev_err(&port->dev, "qt2_write - urb is in use\n");
goto write_out;
}

Expand Down

0 comments on commit 788a661

Please sign in to comment.