USB: navman.c: remove dbg() usage
dbg() is a usb-serial specific macro. This patch converts the navman.c driver to use dev_dbg() instead to tie into the dynamic debug infrastructure. CC: Rusty Russell <rusty@rustcorp.com.au> CC: Alan Stern <stern@rowland.harvard.edu> CC: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9f857ae922
commit
00c533fd64
@ -46,11 +46,11 @@ static void navman_read_int_callback(struct urb *urb)
|
|||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
case -ESHUTDOWN:
|
case -ESHUTDOWN:
|
||||||
/* this urb is terminated, clean up */
|
/* this urb is terminated, clean up */
|
||||||
dbg("%s - urb shutting down with status: %d",
|
dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n",
|
||||||
__func__, status);
|
__func__, status);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
dbg("%s - nonzero urb status received: %d",
|
dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n",
|
||||||
__func__, status);
|
__func__, status);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
@ -78,7 +78,8 @@ static int navman_open(struct tty_struct *tty, struct usb_serial_port *port)
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
if (port->interrupt_in_urb) {
|
if (port->interrupt_in_urb) {
|
||||||
dbg("%s - adding interrupt input for treo", __func__);
|
dev_dbg(&port->dev, "%s - adding interrupt input for treo\n",
|
||||||
|
__func__);
|
||||||
result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
|
result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
|
||||||
if (result)
|
if (result)
|
||||||
dev_err(&port->dev,
|
dev_err(&port->dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user