aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/interface.c
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2010-02-22 08:09:52 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-26 04:24:23 -0500
commit1528b18f7ec2b907711f37667c68e10d9296c882 (patch)
tree00c887ea15474334898ae1f89a05706be49079ed /drivers/isdn/gigaset/interface.c
parent63e055d1c6e3a5f6d370cc841d621d5fa4d5d834 (diff)
gigaset: reduce syslog clutter
Improve readability of the Gigaset driver's kernel messages by removing a few unnecessary messages and limiting the emission of some debug messages more narrowly. Impact: logging 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.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index d2260b0055fc..a1bcbc21ff71 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -45,8 +45,6 @@ static int if_lock(struct cardstate *cs, int *arg)
45 cs->waiting = 0; 45 cs->waiting = 0;
46 return -ENOMEM; 46 return -ENOMEM;
47 } 47 }
48
49 gig_dbg(DEBUG_CMD, "scheduling IF_LOCK");
50 gigaset_schedule_event(cs); 48 gigaset_schedule_event(cs);
51 49
52 wait_event(cs->waitqueue, !cs->waiting); 50 wait_event(cs->waitqueue, !cs->waiting);
@@ -81,8 +79,6 @@ static int if_version(struct cardstate *cs, unsigned arg[4])
81 cs->waiting = 0; 79 cs->waiting = 0;
82 return -ENOMEM; 80 return -ENOMEM;
83 } 81 }
84
85 gig_dbg(DEBUG_CMD, "scheduling IF_VER");
86 gigaset_schedule_event(cs); 82 gigaset_schedule_event(cs);
87 83
88 wait_event(cs->waitqueue, !cs->waiting); 84 wait_event(cs->waitqueue, !cs->waiting);
@@ -274,7 +270,7 @@ static int if_ioctl(struct tty_struct *tty, struct file *file,
274 ? -EFAULT : 0; 270 ? -EFAULT : 0;
275 break; 271 break;
276 default: 272 default:
277 gig_dbg(DEBUG_ANY, "%s: arg not supported - 0x%04x", 273 gig_dbg(DEBUG_IF, "%s: arg not supported - 0x%04x",
278 __func__, cmd); 274 __func__, cmd);
279 retval = -ENOIOCTLCMD; 275 retval = -ENOIOCTLCMD;
280 } 276 }
@@ -455,7 +451,7 @@ static void if_throttle(struct tty_struct *tty)
455 else if (!cs->open_count) 451 else if (!cs->open_count)
456 dev_warn(cs->dev, "%s: device not opened\n", __func__); 452 dev_warn(cs->dev, "%s: device not opened\n", __func__);
457 else 453 else
458 gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__); 454 gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
459 455
460 mutex_unlock(&cs->mutex); 456 mutex_unlock(&cs->mutex);
461} 457}
@@ -479,7 +475,7 @@ static void if_unthrottle(struct tty_struct *tty)
479 else if (!cs->open_count) 475 else if (!cs->open_count)
480 dev_warn(cs->dev, "%s: device not opened\n", __func__); 476 dev_warn(cs->dev, "%s: device not opened\n", __func__);
481 else 477 else
482 gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__); 478 gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
483 479
484 mutex_unlock(&cs->mutex); 480 mutex_unlock(&cs->mutex);
485} 481}
@@ -630,7 +626,7 @@ void gigaset_if_receive(struct cardstate *cs,
630 spin_lock_irqsave(&cs->lock, flags); 626 spin_lock_irqsave(&cs->lock, flags);
631 tty = cs->tty; 627 tty = cs->tty;
632 if (tty == NULL) 628 if (tty == NULL)
633 gig_dbg(DEBUG_ANY, "receive on closed device"); 629 gig_dbg(DEBUG_IF, "receive on closed device");
634 else { 630 else {
635 tty_buffer_request_room(tty, len); 631 tty_buffer_request_room(tty, len);
636 tty_insert_flip_string(tty, buffer, len); 632 tty_insert_flip_string(tty, buffer, len);