diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:08 -0400 |
commit | 66afb5b535fe34cd6b33d2ef45aac24fac9370f8 (patch) | |
tree | 1382dad5a2f492d894cae636e2e3d54f1c253cb4 /drivers/usb/serial | |
parent | 6971113e1000d24f7d4975eaa6f8cf2739a4565b (diff) |
USB: aircable.c: remove dbg() usage
dbg() is a usb-serial specific macro. This patch converts
the aircable.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Paul Gortmaker <paul.gortmaker@windriver.com>
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/aircable.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index cef5d75151dd..d634e6635632 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
@@ -111,13 +111,14 @@ static int aircable_probe(struct usb_serial *serial, | |||
111 | for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { | 111 | for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { |
112 | endpoint = &iface_desc->endpoint[i].desc; | 112 | endpoint = &iface_desc->endpoint[i].desc; |
113 | if (usb_endpoint_is_bulk_out(endpoint)) { | 113 | if (usb_endpoint_is_bulk_out(endpoint)) { |
114 | dbg("found bulk out on endpoint %d", i); | 114 | dev_dbg(&serial->dev->dev, |
115 | "found bulk out on endpoint %d\n", i); | ||
115 | ++num_bulk_out; | 116 | ++num_bulk_out; |
116 | } | 117 | } |
117 | } | 118 | } |
118 | 119 | ||
119 | if (num_bulk_out == 0) { | 120 | if (num_bulk_out == 0) { |
120 | dbg("Invalid interface, discarding"); | 121 | dev_dbg(&serial->dev->dev, "Invalid interface, discarding\n"); |
121 | return -ENODEV; | 122 | return -ENODEV; |
122 | } | 123 | } |
123 | 124 | ||
@@ -133,7 +134,7 @@ static int aircable_process_packet(struct tty_struct *tty, | |||
133 | packet += HCI_HEADER_LENGTH; | 134 | packet += HCI_HEADER_LENGTH; |
134 | } | 135 | } |
135 | if (len <= 0) { | 136 | if (len <= 0) { |
136 | dbg("%s - malformed packet", __func__); | 137 | dev_dbg(&port->dev, "%s - malformed packet\n", __func__); |
137 | return 0; | 138 | return 0; |
138 | } | 139 | } |
139 | 140 | ||