diff options
author | Olof Johansson <olof@lixom.net> | 2006-09-07 16:18:08 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-09-13 04:39:53 -0400 |
commit | 87fd7724d4022913ae8dbee3ed55cd04f2c316a6 (patch) | |
tree | 9b27b41d106e25ed8185a32db37b63f89df0220f | |
parent | 06e6d290ac7a9fb6fcec3a2207988163709f06aa (diff) |
[POWERPC] Quiet hvc_console console output on failed opens
No other tty driver will print on the console when the open of it fails.
On systems that happen to be configured for both ttyS0 and hvc0 console,
this will keep flooding the console output. This is most likely to
happen with systems booted between with and without hypervisor from the
same filesystem.
Let's just remove it. When it's really needed (i.e. when the open fails
and someone is trying to debug it), noone will see the output anyway. And
init will report the opens failing in due time through the syslog.
Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | drivers/char/hvc_console.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index dbee8bed0530..1d1bd34b7f12 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c | |||
@@ -320,10 +320,8 @@ static int hvc_open(struct tty_struct *tty, struct file * filp) | |||
320 | struct kobject *kobjp; | 320 | struct kobject *kobjp; |
321 | 321 | ||
322 | /* Auto increments kobject reference if found. */ | 322 | /* Auto increments kobject reference if found. */ |
323 | if (!(hp = hvc_get_by_index(tty->index))) { | 323 | if (!(hp = hvc_get_by_index(tty->index))) |
324 | printk(KERN_WARNING "hvc_console: tty open failed, no vty associated with tty.\n"); | ||
325 | return -ENODEV; | 324 | return -ENODEV; |
326 | } | ||
327 | 325 | ||
328 | spin_lock_irqsave(&hp->lock, flags); | 326 | spin_lock_irqsave(&hp->lock, flags); |
329 | /* Check and then increment for fast path open. */ | 327 | /* Check and then increment for fast path open. */ |