diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:25 -0400 |
commit | 00c533fd64a3eb7f8e266413d3e9bd070df9d5ed (patch) | |
tree | b6e5f96be17d442b886b3f4e666428a172ab5c8a /drivers/usb/serial | |
parent | 9f857ae922a08a94fe41a649c2d0baa73cd74d2a (diff) |
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>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/navman.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 7a09e8a07907..d95452cc076d 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -46,12 +46,12 @@ static void navman_read_int_callback(struct urb *urb) | |||
46 | case -ENOENT: | 46 | case -ENOENT: |
47 | case -ESHUTDOWN: | 47 | case -ESHUTDOWN: |
48 | /* this urb is terminated, clean up */ | 48 | /* this urb is terminated, clean up */ |
49 | dbg("%s - urb shutting down with status: %d", | 49 | dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n", |
50 | __func__, status); | 50 | __func__, status); |
51 | return; | 51 | return; |
52 | default: | 52 | default: |
53 | dbg("%s - nonzero urb status received: %d", | 53 | dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n", |
54 | __func__, status); | 54 | __func__, status); |
55 | goto exit; | 55 | goto exit; |
56 | } | 56 | } |
57 | 57 | ||
@@ -78,7 +78,8 @@ static int navman_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
78 | int result = 0; | 78 | int result = 0; |
79 | 79 | ||
80 | if (port->interrupt_in_urb) { | 80 | if (port->interrupt_in_urb) { |
81 | dbg("%s - adding interrupt input for treo", __func__); | 81 | dev_dbg(&port->dev, "%s - adding interrupt input for treo\n", |
82 | __func__); | ||
82 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); | 83 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); |
83 | if (result) | 84 | if (result) |
84 | dev_err(&port->dev, | 85 | dev_err(&port->dev, |