Skip to contentSkip to conversation

remove double newline from sysrq action_msg

PATCH New Olaf Hering 1 participant 1 message Oct 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove double newline from sysrq action_msg

__handle_sysrq already prints a newline, so the action_msg string doesnt need yet another newline.

arch/i386/mach-voyager/voyager_basic.c +1 -1
diff -purN linux-2.6.9/arch/i386/mach-voyager/voyager_basic.c linux-2.6.10-rc1-bk6/arch/i386/mach-voyager/voyager_basic.c
@@ -53,7 +53,7 @@ voyager_dump(int dummy1, struct pt_regs 
 static struct sysrq_key_op sysrq_voyager_dump_op = {
 	.handler	= voyager_dump,
 	.help_msg	= "Voyager",
-	.action_msg	= "Dump Voyager Status\n",
+	.action_msg	= "Dump Voyager Status",
 };
 #endif
 
arch/ppc/xmon/start.c +1 -1
diff -purN linux-2.6.9/arch/ppc/xmon/start.c linux-2.6.10-rc1-bk6/arch/ppc/xmon/start.c
@@ -102,7 +102,7 @@ static struct sysrq_key_op sysrq_xmon_op
 {
 	.handler =	sysrq_handle_xmon,
 	.help_msg =	"Xmon",
-	.action_msg =	"Entering xmon\n",
+	.action_msg =	"Entering xmon",
 };
 #endif
 
arch/ppc64/xmon/start.c +1 -1
diff -purN linux-2.6.9/arch/ppc64/xmon/start.c linux-2.6.10-rc1-bk6/arch/ppc64/xmon/start.c
@@ -35,7 +35,7 @@ static struct sysrq_key_op sysrq_xmon_op
 {
 	.handler =	sysrq_handle_xmon,
 	.help_msg =	"Xmon",
-	.action_msg =	"Entering xmon\n",
+	.action_msg =	"Entering xmon",
 };
 
 static int __init setup_xmon_sysrq(void)
kernel/power/poweroff.c +1 -1
diff -purN linux-2.6.9/kernel/power/poweroff.c linux-2.6.10-rc1-bk6/kernel/power/poweroff.c
@@ -32,7 +32,7 @@ static void handle_poweroff(int key, str
 static struct sysrq_key_op	sysrq_poweroff_op = {
 	.handler        = handle_poweroff,
 	.help_msg       = "powerOff",
-	.action_msg     = "Power Off\n"
+	.action_msg     = "Power Off"
 };
 
 static int pm_sysrq_init(void)
Signature · 3 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG