Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1507484 > unrolled thread

[PATCH 1/3] x86/CPU: Remove the printk format specifier in "CPU0: "

Started byBorislav Petkov <bp@alien8.de>
First post2016-10-24 19:40 +0200
Last post2016-10-25 12:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/3] x86/CPU: Remove the printk format specifier in "CPU0: " Borislav Petkov <bp@alien8.de> - 2016-10-24 19:40 +0200
    [tip:x86/cpu] x86/cpu: Remove the printk format specifier in "CPU0:  " tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-10-25 12:40 +0200

#1507484 — [PATCH 1/3] x86/CPU: Remove the printk format specifier in "CPU0: "

FromBorislav Petkov <bp@alien8.de>
Date2016-10-24 19:40 +0200
Subject[PATCH 1/3] x86/CPU: Remove the printk format specifier in "CPU0: "
Message-ID<svRo5-2jl-7@gated-at.bofh.it>
From: Borislav Petkov <bp@suse.de>

We're using a literal, move it into the string.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>
---
 arch/x86/kernel/smpboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 36cd5dc6c42e..105487738581 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1329,7 +1329,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
 	default_setup_apic_routing();
 	cpu0_logical_apicid = apic_bsp_setup(false);
 
-	pr_info("CPU%d: ", 0);
+	pr_info("CPU0: ");
 	print_cpu_info(&cpu_data(0));
 
 	if (is_uv_system())
-- 
2.10.0

[toc] | [next] | [standalone]


#1508172 — [tip:x86/cpu] x86/cpu: Remove the printk format specifier in "CPU0: "

Fromtip-bot for Borislav Petkov <tipbot@zytor.com>
Date2016-10-25 12:40 +0200
Subject[tip:x86/cpu] x86/cpu: Remove the printk format specifier in "CPU0: "
Message-ID<sw7jc-4nV-17@gated-at.bofh.it>
In reply to#1507484
Commit-ID:  d54ff31dd86c6df734d6b2d6382206f2b0816642
Gitweb:     http://git.kernel.org/tip/d54ff31dd86c6df734d6b2d6382206f2b0816642
Author:     Borislav Petkov <bp@suse.de>
AuthorDate: Mon, 24 Oct 2016 19:38:42 +0200
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 25 Oct 2016 11:48:49 +0200

x86/cpu: Remove the printk format specifier in "CPU0: "

We're using a literal, move it into the string.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161024173844.23038-2-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/smpboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 42f5eb7..e2e0e35 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1331,7 +1331,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
 	default_setup_apic_routing();
 	cpu0_logical_apicid = apic_bsp_setup(false);
 
-	pr_info("CPU%d: ", 0);
+	pr_info("CPU0: ");
 	print_cpu_info(&cpu_data(0));
 
 	if (is_uv_system())

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web