linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Quiet hvc_console console output on failed opens
@ 2006-09-07 20:18 Olof Johansson
  2006-09-07 20:38 ` Ryan Arnold
  0 siblings, 1 reply; 4+ messages in thread
From: Olof Johansson @ 2006-09-07 20:18 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

Hi,

Please consider for the 2.6.19 queue:



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>

Index: merge/drivers/char/hvc_console.c
===================================================================
--- merge.orig/drivers/char/hvc_console.c
+++ merge/drivers/char/hvc_console.c
@@ -320,10 +320,8 @@ static int hvc_open(struct tty_struct *t
 	struct kobject *kobjp;
 
 	/* Auto increments kobject reference if found. */
-	if (!(hp = hvc_get_by_index(tty->index))) {
-		printk(KERN_WARNING "hvc_console: tty open failed, no vty associated with tty.\n");
+	if (!(hp = hvc_get_by_index(tty->index)))
 		return -ENODEV;
-	}
 
 	spin_lock_irqsave(&hp->lock, flags);
 	/* Check and then increment for fast path open. */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Quiet hvc_console console output on failed opens
  2006-09-07 20:18 [PATCH] powerpc: Quiet hvc_console console output on failed opens Olof Johansson
@ 2006-09-07 20:38 ` Ryan Arnold
  2006-09-07 23:20   ` Paul Mackerras
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Arnold @ 2006-09-07 20:38 UTC (permalink / raw)
  To: Olof Johansson; +Cc: linuxppc-dev, paulus

On Thu, 2006-09-07 at 15:18 -0500, Olof Johansson wrote:
> Hi,
> 
> Please consider for the 2.6.19 queue:
> 
> 
> 
> 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>
> 
> Index: merge/drivers/char/hvc_console.c
> ===================================================================
> --- merge.orig/drivers/char/hvc_console.c
> +++ merge/drivers/char/hvc_console.c
> @@ -320,10 +320,8 @@ static int hvc_open(struct tty_struct *t
>  	struct kobject *kobjp;
>  
>  	/* Auto increments kobject reference if found. */
> -	if (!(hp = hvc_get_by_index(tty->index))) {
> -		printk(KERN_WARNING "hvc_console: tty open failed, no vty associated with tty.\n");
> +	if (!(hp = hvc_get_by_index(tty->index)))
>  		return -ENODEV;
> -	}
>  
>  	spin_lock_irqsave(&hp->lock, flags);
>  	/* Check and then increment for fast path open. */

This seems like a good fix to me.  I think it is a debug artifact
anyway.

-- 
Ryan S. Arnold <rsa@us.ibm.com>
IBM Linux Technology Center
Linux on Power Toolchain

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Quiet hvc_console console output on failed opens
  2006-09-07 20:38 ` Ryan Arnold
@ 2006-09-07 23:20   ` Paul Mackerras
  2006-09-11 19:13     ` Ryan Arnold
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2006-09-07 23:20 UTC (permalink / raw)
  To: Ryan Arnold; +Cc: Olof Johansson, linuxppc-dev

Ryan Arnold writes:

> This seems like a good fix to me.  I think it is a debug artifact
> anyway.

So, does that amount to an Acked-by?

Paul.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Quiet hvc_console console output on failed opens
  2006-09-07 23:20   ` Paul Mackerras
@ 2006-09-11 19:13     ` Ryan Arnold
  0 siblings, 0 replies; 4+ messages in thread
From: Ryan Arnold @ 2006-09-11 19:13 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Olof Johansson, linuxppc-dev

On Fri, 2006-09-08 at 09:20 +1000, Paul Mackerras wrote:
> Ryan Arnold writes:
> 
> > This seems like a good fix to me.  I think it is a debug artifact
> > anyway.
> 
> So, does that amount to an Acked-by?
> 
> Paul.

Yes, take that as an:

Acked-by: Ryan S. Arnold <rsa@us.ibm.com>

-- 
Ryan S. Arnold <rsa@us.ibm.com>
IBM Linux Technology Center
Linux on Power Toolchain

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-11 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-07 20:18 [PATCH] powerpc: Quiet hvc_console console output on failed opens Olof Johansson
2006-09-07 20:38 ` Ryan Arnold
2006-09-07 23:20   ` Paul Mackerras
2006-09-11 19:13     ` Ryan Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).