lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070401120754.3b619788.randy.dunlap@oracle.com>
Date:	Sun, 1 Apr 2007 12:07:54 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Jan Engelhardt <jengelh@...ux01.gwdg.de>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...l.org>
Subject: Re: [PATCH 08/16] console-printk-level.diff

On Sun, 1 Apr 2007 20:15:27 +0200 (MEST) Jan Engelhardt wrote:

> 
> Allow the printk level to be set using a "conlevel=" parameter.
> (Or is there already a different bootoption that does the same thing?)

Yes, there's "loglevel", as well as
"debug", "quiet", and "ignore_loglevel".


> Signed-off-by: Jan Engelhardt <jengelh@....de>
> 
>  printk.c |    9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> Index: linux-2.6.21-rc5/kernel/printk.c
> ===================================================================
> --- linux-2.6.21-rc5.orig/kernel/printk.c
> +++ linux-2.6.21-rc5/kernel/printk.c
> @@ -747,6 +747,15 @@ void resume_console(void)
>  }
>  #endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */
>  
> +static __init int set_conlevel(char *str)
> +{
> +	if(*str >= '0' && *str <= '9')
> +		*console_printk = *str - '0';

s/*console_printk/console_loglevel/


> +	return 1;
> +}
> +
> +__setup("conlevel=", set_conlevel);

s/conlevel/loglevel/

> +
>  /**
>   * acquire_console_sem - lock the console system for exclusive use.
>   *

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ