aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/interface.c
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2008-12-26 04:21:29 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 04:21:29 -0500
commitc8770dcabd6a615b155c25dc4d57251d3e7f151c (patch)
tree3f8bbf9d4f17525440b22bfb702f35a9f7bdf033 /drivers/isdn/gigaset/interface.c
parent4d8cd002602987ddc9507b5390800343f820ac92 (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/interface.c')
-rw-r--r--drivers/isdn/gigaset/interface.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index 956381cd2774..94fa84b2c4e7 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -107,7 +107,7 @@ static int if_config(struct cardstate *cs, int *arg)
107 return -EBUSY; 107 return -EBUSY;
108 108
109 if (!cs->connected) { 109 if (!cs->connected) {
110 err("not connected!"); 110 pr_err("%s: not connected\n", __func__);
111 return -ENODEV; 111 return -ENODEV;
112 } 112 }
113 113
@@ -188,7 +188,7 @@ static void if_close(struct tty_struct *tty, struct file *filp)
188 188
189 cs = (struct cardstate *) tty->driver_data; 189 cs = (struct cardstate *) tty->driver_data;
190 if (!cs) { 190 if (!cs) {
191 err("cs==NULL in %s", __func__); 191 pr_err("%s: no cardstate\n", __func__);
192 return; 192 return;
193 } 193 }
194 194
@@ -222,7 +222,7 @@ static int if_ioctl(struct tty_struct *tty, struct file *file,
222 222
223 cs = (struct cardstate *) tty->driver_data; 223 cs = (struct cardstate *) tty->driver_data;
224 if (!cs) { 224 if (!cs) {
225 err("cs==NULL in %s", __func__); 225 pr_err("%s: no cardstate\n", __func__);
226 return -ENODEV; 226 return -ENODEV;
227 } 227 }
228 228
@@ -297,7 +297,7 @@ static int if_tiocmget(struct tty_struct *tty, struct file *file)
297 297
298 cs = (struct cardstate *) tty->driver_data; 298 cs = (struct cardstate *) tty->driver_data;
299 if (!cs) { 299 if (!cs) {
300 err("cs==NULL in %s", __func__); 300 pr_err("%s: no cardstate\n", __func__);
301 return -ENODEV; 301 return -ENODEV;
302 } 302 }
303 303
@@ -323,7 +323,7 @@ static int if_tiocmset(struct tty_struct *tty, struct file *file,
323 323
324 cs = (struct cardstate *) tty->driver_data; 324 cs = (struct cardstate *) tty->driver_data;
325 if (!cs) { 325 if (!cs) {
326 err("cs==NULL in %s", __func__); 326 pr_err("%s: no cardstate\n", __func__);
327 return -ENODEV; 327 return -ENODEV;
328 } 328 }
329 329
@@ -354,7 +354,7 @@ static int if_write(struct tty_struct *tty, const unsigned char *buf, int count)
354 354
355 cs = (struct cardstate *) tty->driver_data; 355 cs = (struct cardstate *) tty->driver_data;
356 if (!cs) { 356 if (!cs) {
357 err("cs==NULL in %s", __func__); 357 pr_err("%s: no cardstate\n", __func__);
358 return -ENODEV; 358 return -ENODEV;
359 } 359 }
360 360
@@ -388,7 +388,7 @@ static int if_write_room(struct tty_struct *tty)
388 388
389 cs = (struct cardstate *) tty->driver_data; 389 cs = (struct cardstate *) tty->driver_data;
390 if (!cs) { 390 if (!cs) {
391 err("cs==NULL in %s", __func__); 391 pr_err("%s: no cardstate\n", __func__);
392 return -ENODEV; 392 return -ENODEV;
393 } 393 }
394 394
@@ -420,7 +420,7 @@ static int if_chars_in_buffer(struct tty_struct *tty)
420 420
421 cs = (struct cardstate *) tty->driver_data; 421 cs = (struct cardstate *) tty->driver_data;
422 if (!cs) { 422 if (!cs) {
423 err("cs==NULL in %s", __func__); 423 pr_err("%s: no cardstate\n", __func__);
424 return -ENODEV; 424 return -ENODEV;
425 } 425 }
426 426
@@ -451,7 +451,7 @@ static void if_throttle(struct tty_struct *tty)
451 451
452 cs = (struct cardstate *) tty->driver_data; 452 cs = (struct cardstate *) tty->driver_data;
453 if (!cs) { 453 if (!cs) {
454 err("cs==NULL in %s", __func__); 454 pr_err("%s: no cardstate\n", __func__);
455 return; 455 return;
456 } 456 }
457 457
@@ -474,7 +474,7 @@ static void if_unthrottle(struct tty_struct *tty)
474 474
475 cs = (struct cardstate *) tty->driver_data; 475 cs = (struct cardstate *) tty->driver_data;
476 if (!cs) { 476 if (!cs) {
477 err("cs==NULL in %s", __func__); 477 pr_err("%s: no cardstate\n", __func__);
478 return; 478 return;
479 } 479 }
480 480
@@ -501,7 +501,7 @@ static void if_set_termios(struct tty_struct *tty, struct ktermios *old)
501 501
502 cs = (struct cardstate *) tty->driver_data; 502 cs = (struct cardstate *) tty->driver_data;
503 if (!cs) { 503 if (!cs) {
504 err("cs==NULL in %s", __func__); 504 pr_err("%s: no cardstate\n", __func__);
505 return; 505 return;
506 } 506 }
507 507
@@ -701,7 +701,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname,
701 701
702 ret = tty_register_driver(tty); 702 ret = tty_register_driver(tty);
703 if (ret < 0) { 703 if (ret < 0) {
704 err("failed to register tty driver (error %d)", ret); 704 pr_err("error %d registering tty driver\n", ret);
705 goto error; 705 goto error;
706 } 706 }
707 gig_dbg(DEBUG_IF, "tty driver initialized"); 707 gig_dbg(DEBUG_IF, "tty driver initialized");
@@ -709,7 +709,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname,
709 return; 709 return;
710 710
711enomem: 711enomem:
712 err("could not allocate tty structures"); 712 pr_err("out of memory\n");
713error: 713error:
714 if (drv->tty) 714 if (drv->tty)
715 put_tty_driver(drv->tty); 715 put_tty_driver(drv->tty);