From: Matthias-Christian Ott <matthias.christian@tiscali.de>
To: Matthias.Kunze@gmx-topmail.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] config option for default loglevel
Date: Sat, 26 Feb 2005 19:17:36 +0100 [thread overview]
Message-ID: <4220BD40.6040104@tiscali.de> (raw)
In-Reply-To: <20050226190556.0def242c.Matthias.Kunze@gmx-topmail.de>
Matthias Kunze wrote:
>Hi,
>
>I've created a little patch to make the default loglevel a configurable
>option. Is there a chance that this patch will be included in a future
>release?
>
>diff -Naur linux-2.6.10/drivers/video/console/Kconfig linux-2.6.10-new/drivers/video/console/Kconfig
>--- linux-2.6.10/drivers/video/console/Kconfig 2004-12-24 22:34:26.000000000 +0100
>+++ linux-2.6.10-new/drivers/video/console/Kconfig 2005-02-26 17:11:03.000000000 +0100
>@@ -186,5 +186,25 @@
> big letters (like the letters used in the SPARC PROM). If the
> standard font is unreadable for you, say Y, otherwise say N.
>
>+config DEFAULT_CONSOLE_LOGLEVEL
>+ int "Default Console Loglevel"
>+ range 1 8
>+ default 7
>+ help
>+ All Kernel Messages with a loglevel smaller than the console loglevel
>+ will be printed to the console. This value can later be changed with
>+ klogd or other programs. The loglevels are defined as follows:
>+
>+ 0 (KERN_EMERG) system is unusable
>+ 1 (KERN_ALERT) action must be taken immediately
>+ 2 (KERN_CRIT) critical conditions
>+ 3 (KERN_ERR) error conditions
>+ 4 (KERN_WARNING) warning conditions
>+ 5 (KERN_NOTICE) normal but significant condition
>+ 6 (KERN_INFO) informational
>+ 7 (KERN_DEBUG) debug-level messages
>+
>+ The console loglevel can be set to a value in the range from 1 to 8.
>+
> endmenu
>
>diff -Naur linux-2.6.10/kernel/printk.c linux-2.6.10-new/kernel/printk.c
>--- linux-2.6.10/kernel/printk.c 2005-02-26 16:49:03.000000000 +0100
>+++ linux-2.6.10-new/kernel/printk.c 2005-02-26 17:32:09.000000000 +0100
>@@ -41,7 +41,7 @@
>
> /* We show everything that is MORE important than this.. */
> #define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */
>-#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */
>+#define DEFAULT_CONSOLE_LOGLEVEL CONFIG_DEFAULT_CONSOLE_LOGLEVEL
>
> DECLARE_WAIT_QUEUE_HEAD(log_wait);
>
>
>---
>Matthias Kunze
>http://elpp.foofighter.de
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
Hi!
I think this patch is useful and should be included in further Kernel
releases.
Matthias-Christian Ott
next prev parent reply other threads:[~2005-02-26 18:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 18:05 Matthias Kunze
2005-02-26 18:17 ` Matthias-Christian Ott [this message]
2005-02-26 23:45 ` Andrew Morton
2005-02-27 2:04 ` Matthias Kunze
2005-02-27 2:15 ` Andrew Morton
2005-02-27 2:36 ` Matthias Kunze
2005-02-27 2:18 ` Andries Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4220BD40.6040104@tiscali.de \
--to=matthias.christian@tiscali.de \
--cc=Matthias.Kunze@gmx-topmail.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®