Skip to contentSkip to conversation

arm: trivial: add missing argument to printk

PATCH New Anand Gadiyar 2 participants 2 messages Dec 3, 2010

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

PATCH 1/1 arm: trivial: add missing argument to printk

Patch "ARM: CPU hotplug: move cpu_killed completion to core code" accidentally left out an argument to a printk call. This introduces the following build warning - fix this.

arch/arm/kernel/smp.c: In function '__cpu_die':
arch/arm/kernel/smp.c:216: warning: too few arguments for format

---
 arch/arm/kernel/smp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/smp.c +1 -1
Index: mainline/arch/arm/kernel/smp.c
===================================================================
@@ -213,7 +213,7 @@ static DECLARE_COMPLETION(cpu_died);
 void __cpu_die(unsigned int cpu)
 {
 	if (wait_for_completion_timeout(&cpu_died, 5000)) {
-		printk(KERN_ERR "CPU%u: cpu didn't die\n");
+		printk(KERN_ERR "CPU%u: cpu didn't die\n", cpu);
 		return;
 	}
 	printk(KERN_NOTICE "CPU%u: shutdown\n", cpu);
#1 lore raw

PATCH 1/1 arm: trivial: add missing argument to printk

Quoted 3 lines · Anand Gadiyar

Patch "ARM: CPU hotplug: move cpu_killed completion to core code" accidentally left out an argument to a printk call. This introduces the following build warning - fix this.

Already caught this.