diff options
author | Tilman Schmidt <tilman@imap.cc> | 2008-07-24 00:28:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:22 -0400 |
commit | 5002779d37b261271da9883e06c14b097d4781c4 (patch) | |
tree | ece2970332e97d581938e210c139e42b1c528018 /drivers/isdn/gigaset/usb-gigaset.c | |
parent | 9b3e43a747c74029b0acf6acf4666601f132f471 (diff) |
gigaset: use dev_ macros for messages
The info() / warn() / err() macros from usb.h for generating kernel
messages are considered inferior to dev_info() / dev_warn() / dev_err()
from device.h. Replace them where possible. Also correct the severity
level and improve the text of one message.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/gigaset/usb-gigaset.c')
-rw-r--r-- | drivers/isdn/gigaset/usb-gigaset.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c index 77d20ab0cd4d..4661830a49db 100644 --- a/drivers/isdn/gigaset/usb-gigaset.c +++ b/drivers/isdn/gigaset/usb-gigaset.c | |||
@@ -498,8 +498,9 @@ static int send_cb(struct cardstate *cs, struct cmdbuf_t *cb) | |||
498 | 498 | ||
499 | if (status) { | 499 | if (status) { |
500 | ucs->busy = 0; | 500 | ucs->busy = 0; |
501 | err("could not submit urb (error %d)\n", | 501 | dev_err(cs->dev, |
502 | -status); | 502 | "could not submit urb (error %d)\n", |
503 | -status); | ||
503 | cb->len = 0; /* skip urb => remove cb+wakeup | 504 | cb->len = 0; /* skip urb => remove cb+wakeup |
504 | in next loop cycle */ | 505 | in next loop cycle */ |
505 | } | 506 | } |
@@ -670,7 +671,7 @@ static int write_modem(struct cardstate *cs) | |||
670 | spin_unlock_irqrestore(&cs->lock, flags); | 671 | spin_unlock_irqrestore(&cs->lock, flags); |
671 | 672 | ||
672 | if (ret) { | 673 | if (ret) { |
673 | err("could not submit urb (error %d)\n", -ret); | 674 | dev_err(cs->dev, "could not submit urb (error %d)\n", -ret); |
674 | ucs->busy = 0; | 675 | ucs->busy = 0; |
675 | } | 676 | } |
676 | 677 | ||