diff options
author | Tilman Schmidt <tilman@imap.cc> | 2008-12-26 04:21:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 04:21:29 -0500 |
commit | c8770dcabd6a615b155c25dc4d57251d3e7f151c (patch) | |
tree | 3f8bbf9d4f17525440b22bfb702f35a9f7bdf033 /drivers/isdn/gigaset/isocdata.c | |
parent | 4d8cd002602987ddc9507b5390800343f820ac92 (diff) |
gigaset: use pr_err() and pr_info()
Switch from private printk wrapper macros to using pr_err() and
pr_info() from linux/kernel.h, at the same time unifying a few
error messages.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/isocdata.c')
-rw-r--r-- | drivers/isdn/gigaset/isocdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index fbce5222d83c..4b8b58503854 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c | |||
@@ -173,13 +173,13 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size) | |||
173 | __func__, read, write, limit); | 173 | __func__, read, write, limit); |
174 | #ifdef CONFIG_GIGASET_DEBUG | 174 | #ifdef CONFIG_GIGASET_DEBUG |
175 | if (unlikely(size < 0 || size > BAS_OUTBUFPAD)) { | 175 | if (unlikely(size < 0 || size > BAS_OUTBUFPAD)) { |
176 | err("invalid size %d", size); | 176 | pr_err("invalid size %d\n", size); |
177 | return -EINVAL; | 177 | return -EINVAL; |
178 | } | 178 | } |
179 | src = iwb->read; | 179 | src = iwb->read; |
180 | if (unlikely(limit > BAS_OUTBUFSIZE + BAS_OUTBUFPAD || | 180 | if (unlikely(limit > BAS_OUTBUFSIZE + BAS_OUTBUFPAD || |
181 | (read < src && limit >= src))) { | 181 | (read < src && limit >= src))) { |
182 | err("isoc write buffer frame reservation violated"); | 182 | pr_err("isoc write buffer frame reservation violated\n"); |
183 | return -EFAULT; | 183 | return -EFAULT; |
184 | } | 184 | } |
185 | #endif | 185 | #endif |