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>
This commit is contained in:

committed by
David S. Miller

parent
63e055d1c6
commit
1528b18f7e
@@ -45,8 +45,6 @@ static int if_lock(struct cardstate *cs, int *arg)
|
||||
cs->waiting = 0;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
gig_dbg(DEBUG_CMD, "scheduling IF_LOCK");
|
||||
gigaset_schedule_event(cs);
|
||||
|
||||
wait_event(cs->waitqueue, !cs->waiting);
|
||||
@@ -81,8 +79,6 @@ static int if_version(struct cardstate *cs, unsigned arg[4])
|
||||
cs->waiting = 0;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
gig_dbg(DEBUG_CMD, "scheduling IF_VER");
|
||||
gigaset_schedule_event(cs);
|
||||
|
||||
wait_event(cs->waitqueue, !cs->waiting);
|
||||
@@ -274,7 +270,7 @@ static int if_ioctl(struct tty_struct *tty, struct file *file,
|
||||
? -EFAULT : 0;
|
||||
break;
|
||||
default:
|
||||
gig_dbg(DEBUG_ANY, "%s: arg not supported - 0x%04x",
|
||||
gig_dbg(DEBUG_IF, "%s: arg not supported - 0x%04x",
|
||||
__func__, cmd);
|
||||
retval = -ENOIOCTLCMD;
|
||||
}
|
||||
@@ -455,7 +451,7 @@ static void if_throttle(struct tty_struct *tty)
|
||||
else if (!cs->open_count)
|
||||
dev_warn(cs->dev, "%s: device not opened\n", __func__);
|
||||
else
|
||||
gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__);
|
||||
gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
|
||||
|
||||
mutex_unlock(&cs->mutex);
|
||||
}
|
||||
@@ -479,7 +475,7 @@ static void if_unthrottle(struct tty_struct *tty)
|
||||
else if (!cs->open_count)
|
||||
dev_warn(cs->dev, "%s: device not opened\n", __func__);
|
||||
else
|
||||
gig_dbg(DEBUG_ANY, "%s: not implemented\n", __func__);
|
||||
gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
|
||||
|
||||
mutex_unlock(&cs->mutex);
|
||||
}
|
||||
@@ -630,7 +626,7 @@ void gigaset_if_receive(struct cardstate *cs,
|
||||
spin_lock_irqsave(&cs->lock, flags);
|
||||
tty = cs->tty;
|
||||
if (tty == NULL)
|
||||
gig_dbg(DEBUG_ANY, "receive on closed device");
|
||||
gig_dbg(DEBUG_IF, "receive on closed device");
|
||||
else {
|
||||
tty_buffer_request_room(tty, len);
|
||||
tty_insert_flip_string(tty, buffer, len);
|
||||
|
Reference in New Issue
Block a user