linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Riley Williams <rhw@MemAlpha.CX>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: 2.2.18: Patch to SysRq code
Date: Tue, 12 Dec 2000 14:28:01 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0012121410110.5152-200000@MemAlpha.CX> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 519 bytes --]

Hi Alan.

The enclosed patch deals with two problems relating to the Magic SysRq
function, as follows:

 1. One of my pet peeves with SysRq as implemented is the apparently
    random order theoptions as listed in the SysRq help list. This
    patch sorts that list into case-insensitive alphabetical order.

 2. According to the above-mentioned help list, the log level can be
    set in the range 0 to 8. The code additionally allows log level
    9 to be set, so this was added to the list.

Best wishes from Riley.

[-- Attachment #2: Patch to sysrq.c --]
[-- Type: TEXT/PLAIN, Size: 842 bytes --]

diff -urN linux-2.2.18.old/drivers/char/sysrq.c linux-2.2.18/drivers/char/sysrq.c
--- linux-2.2.18.old/drivers/char/sysrq.c	Thu May  4 01:16:39 2000
+++ linux-2.2.18/drivers/char/sysrq.c	Tue Dec 12 13:23:23 2000
@@ -134,16 +134,18 @@
 		orig_log_level = 8;
 		break;
 	default:					    /* Unknown: help */
-		if (kbd)
-			printk("unRaw ");
+		printk("Boot kIll killalL loglevel0-9 ");
+		if (sysrq_power_off)
+			printk("Off ");
 #ifdef CONFIG_VT
 		if (tty)
 			printk("saK ");
 #endif
-		printk("Boot ");
-		if (sysrq_power_off)
-			printk("Off ");
-		printk("Sync Unmount showPc showTasks showMem loglevel0-8 tErm kIll killalL\n");
+		printk("showMem showPc showTasks Sync tErm Unmount ");
+		if (kbd)
+			printk("unRaw ");
+		printk("\n");
+
 		/* Don't use 'A' as it's handled specially on the Sparc */
 	}
 

                 reply	other threads:[~2000-12-12 21:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.LNX.4.21.0012121410110.5152-200000@MemAlpha.CX \
    --to=rhw@memalpha.cx \
    --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;
as well as URLs for NNTP newsgroup(s).