From: Bernhard Walle <bernhard@bwalle.de>
To: akpm@linuxfoundation.org
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org,
Bernhard Walle <bernhard@bwalle.de>
Subject: Always print panic message on current console
Date: Sun, 11 Oct 2009 23:04:29 +0200 [thread overview]
Message-ID: <1255295071-13664-1-git-send-email-bernhard@bwalle.de> (raw)
The kernel offers with TIOCL_GETKMSGREDIRECT ioctl() the possibility to
redirect the kernel messages to a specific console.
However, since it's not possible to switch to the kernel message console after
a panic(), it would be nice if the kernel would print the panic message on the
current console.
This patch series adds a new interface to access the global kmsg_redirect
variable by a function to be able to use it in code where CONFIG_VT_CONSOLE is
not set (kernel/panic.c).
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
drivers/char/vt.c | 43 +++++++++++++++++++++++++++++++++++++------
include/linux/tty.h | 2 --
include/linux/vt.h | 15 +++++++++++++++
kernel/panic.c | 4 ++++
kernel/power/console.c | 7 +++----
5 files changed, 59 insertions(+), 12 deletions(-)
next reply other threads:[~2009-10-11 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-11 21:04 Bernhard Walle [this message]
2009-10-11 21:04 ` [PATCH 1/2] Introduce and use vt_kmsg_redirect() function Bernhard Walle
2009-10-11 21:04 ` [PATCH 2/2] Always print panic message on current console Bernhard Walle
-- strict thread matches above, loose matches on Subject: below --
2009-10-10 20:51 Bernhard Walle
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=1255295071-13664-1-git-send-email-bernhard@bwalle.de \
--to=bernhard@bwalle.de \
--cc=akpm@linuxfoundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--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®