Skip to contentSkip to conversation

sparc: Set "ARCH: sunxx" information on the same line

PATCH Applied Corentin Labbe 2 participants 2 messages Dec 11, 2018 – Dec 21, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: Set "ARCH: sunxx" information on the same line

While checking boot log from SPARC qemu, I saw that the "ARCH: sunxx" information was split on two different line.
This patchs merge both line together.
In the meantime, thoses information need to be printed via pr_info since printk print them by default via the warning loglevel.

---
 arch/sparc/kernel/setup_32.c | 13 ++++++-------
 arch/sparc/kernel/setup_64.c |  4 ++--
 2 files changed, 8 insertions(+), 9 deletions(-)
arch/sparc/kernel/setup_32.c +6 -7
index 7df3d704284c..afe1592a6d08 100644
@@ -311,25 +311,24 @@ void __init setup_arch(char **cmdline_p)
 
 	register_console(&prom_early_console);
 
-	printk("ARCH: ");
 	switch(sparc_cpu_model) {
 	case sun4m:
-		printk("SUN4M\n");
+		pr_info("ARCH: SUN4M\n");
 		break;
 	case sun4d:
-		printk("SUN4D\n");
+		pr_info("ARCH: SUN4D\n");
 		break;
 	case sun4e:
-		printk("SUN4E\n");
+		pr_info("ARCH: SUN4E\n");
 		break;
 	case sun4u:
-		printk("SUN4U\n");
+		pr_info("ARCH: SUN4U\n");
 		break;
 	case sparc_leon:
-		printk("LEON\n");
+		pr_info("ARCH: LEON\n");
 		break;
 	default:
-		printk("UNKNOWN!\n");
+		pr_info("ARCH: UNKNOWN!\n");
 		break;
 	}
 
arch/sparc/kernel/setup_64.c +2 -2
index 014390950333..51c4d12c0853 100644
@@ -643,9 +643,9 @@ void __init setup_arch(char **cmdline_p)
 		register_console(&prom_early_console);
 
 	if (tlb_type = hypervisor)
-		printk("ARCH: SUN4V\n");
+		pr_info("ARCH: SUN4V\n");
 	else
-		printk("ARCH: SUN4U\n");
+		pr_info("ARCH: SUN4U\n");
 
 #ifdef CONFIG_DUMMY_CONSOLE
 	conswitchp = &dummy_con;
Signature · 1 line
2.19.2
maintainer Applied
#1 lore raw

From: Corentin Labbe <[email protected]>
Date: Tue, 11 Dec 2018 12:11:09 +0000

Quoted 7 lines

While checking boot log from SPARC qemu, I saw that the "ARCH: sunxx" information was split on two different line.
This patchs merge both line together.
In the meantime, thoses information need to be printed via pr_info since printk print them by default via the warning loglevel.

Applied.