diff options
author | Aleksey Babahin <tamerlan311@gmail.com> | 2012-03-19 16:46:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-10 16:30:37 -0400 |
commit | 91fbecfe59356a37d7e979cdd97f01c062fe1fda (patch) | |
tree | 2be70a370f65120ff8eed8ec56d5efd956195d6f /drivers/usb | |
parent | 704577861d5e7408db59e182d8dca42e5bc4d506 (diff) |
USB: serial: metro-usb: print errors always, not only in debug mode.
Signed-off-by: Aleksey Babahin <tamerlan311@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 2df22176515b..d9ae5841b1ab 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c | |||
@@ -132,7 +132,7 @@ static void metrousb_read_int_callback(struct urb *urb) | |||
132 | /* Set the data read from the usb port into the serial port buffer. */ | 132 | /* Set the data read from the usb port into the serial port buffer. */ |
133 | tty = tty_port_tty_get(&port->port); | 133 | tty = tty_port_tty_get(&port->port); |
134 | if (!tty) { | 134 | if (!tty) { |
135 | dev_dbg(&port->dev, "%s - bad tty pointer - exiting\n", | 135 | dev_err(&port->dev, "%s - bad tty pointer - exiting\n", |
136 | __func__); | 136 | __func__); |
137 | return; | 137 | return; |
138 | } | 138 | } |
@@ -162,7 +162,7 @@ static void metrousb_read_int_callback(struct urb *urb) | |||
162 | result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); | 162 | result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); |
163 | 163 | ||
164 | if (result) | 164 | if (result) |
165 | dev_dbg(&port->dev, | 165 | dev_err(&port->dev, |
166 | "%s - failed submitting interrupt in urb, error code=%d\n", | 166 | "%s - failed submitting interrupt in urb, error code=%d\n", |
167 | __func__, result); | 167 | __func__, result); |
168 | } | 168 | } |
@@ -172,7 +172,7 @@ exit: | |||
172 | /* Try to resubmit the urb. */ | 172 | /* Try to resubmit the urb. */ |
173 | result = usb_submit_urb(urb, GFP_ATOMIC); | 173 | result = usb_submit_urb(urb, GFP_ATOMIC); |
174 | if (result) | 174 | if (result) |
175 | dev_dbg(&port->dev, | 175 | dev_err(&port->dev, |
176 | "%s - failed submitting interrupt in urb, error code=%d\n", | 176 | "%s - failed submitting interrupt in urb, error code=%d\n", |
177 | __func__, result); | 177 | __func__, result); |
178 | } | 178 | } |
@@ -212,7 +212,7 @@ static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
212 | 212 | ||
213 | /* Make sure the urb is initialized. */ | 213 | /* Make sure the urb is initialized. */ |
214 | if (!port->interrupt_in_urb) { | 214 | if (!port->interrupt_in_urb) { |
215 | dev_dbg(&port->dev, "%s - interrupt urb not initialized\n", | 215 | dev_err(&port->dev, "%s - interrupt urb not initialized\n", |
216 | __func__); | 216 | __func__); |
217 | return -ENODEV; | 217 | return -ENODEV; |
218 | } | 218 | } |
@@ -243,7 +243,7 @@ static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
243 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); | 243 | result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); |
244 | 244 | ||
245 | if (result) { | 245 | if (result) { |
246 | dev_dbg(&port->dev, | 246 | dev_err(&port->dev, |
247 | "%s - failed submitting interrupt in urb, error code=%d\n", | 247 | "%s - failed submitting interrupt in urb, error code=%d\n", |
248 | __func__, result); | 248 | __func__, result); |
249 | goto exit; | 249 | goto exit; |
@@ -282,7 +282,7 @@ static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int contr | |||
282 | METROUSB_SET_REQUEST_TYPE, METROUSB_SET_MODEM_CTRL_REQUEST, | 282 | METROUSB_SET_REQUEST_TYPE, METROUSB_SET_MODEM_CTRL_REQUEST, |
283 | control_state, 0, NULL, 0, WDR_TIMEOUT); | 283 | control_state, 0, NULL, 0, WDR_TIMEOUT); |
284 | if (retval < 0) | 284 | if (retval < 0) |
285 | dev_dbg(&serial->dev->dev, | 285 | dev_err(&serial->dev->dev, |
286 | "%s - set modem ctrl=0x%x failed, error code=%d\n", | 286 | "%s - set modem ctrl=0x%x failed, error code=%d\n", |
287 | __func__, mcr, retval); | 287 | __func__, mcr, retval); |
288 | 288 | ||
@@ -415,7 +415,7 @@ static void metrousb_unthrottle(struct tty_struct *tty) | |||
415 | port->interrupt_in_urb->dev = port->serial->dev; | 415 | port->interrupt_in_urb->dev = port->serial->dev; |
416 | result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); | 416 | result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); |
417 | if (result) | 417 | if (result) |
418 | dev_dbg(tty->dev, | 418 | dev_err(tty->dev, |
419 | "failed submitting interrupt in urb error code=%d\n", | 419 | "failed submitting interrupt in urb error code=%d\n", |
420 | result); | 420 | result); |
421 | } | 421 | } |