x86: Combine printk()s in show_regs_common()
authorJan Beulich <JBeulich@novell.com>
Thu, 17 Feb 2011 15:56:58 +0000 (15:56 +0000)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Feb 2011 07:52:30 +0000 (08:52 +0100)
Printing a single character alone when there's an immediately
following printk() is pretty pointless (and wasteful).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <4D5D535A0200007800032730@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/process.c

index ff45541..99fa3ad 100644 (file)
@@ -110,12 +110,9 @@ void show_regs_common(void)
                init_utsname()->release,
                (int)strcspn(init_utsname()->version, " "),
                init_utsname()->version);
-       printk(KERN_CONT " ");
-       printk(KERN_CONT "%s %s", vendor, product);
-       if (board) {
-               printk(KERN_CONT "/");
-               printk(KERN_CONT "%s", board);
-       }
+       printk(KERN_CONT " %s %s", vendor, product);
+       if (board)
+               printk(KERN_CONT "/%s", board);
        printk(KERN_CONT "\n");
 }