[POWERPC] Fix backwards ? : when printing machine type
authoranton@samba.org <anton@samba.org>
Wed, 21 Mar 2007 01:38:14 +0000 (20:38 -0500)
committerPaul Mackerras <paulus@samba.org>
Mon, 26 Mar 2007 02:34:31 +0000 (12:34 +1000)
Looks like someone got this backwards, highlighting the perils of the
? : !!! :)

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/traps.c

index 55d221ffcf1e7b3ffc6cad180a09e859881d4067..f7862224fe85e92748a8f1e28a0b7ef71a57b330 100644 (file)
@@ -153,7 +153,7 @@ int die(const char *str, struct pt_regs *regs, long err)
 #ifdef CONFIG_NUMA
                printk("NUMA ");
 #endif
-               printk("%s\n", ppc_md.name ? "" : ppc_md.name);
+               printk("%s\n", ppc_md.name ? ppc_md.name : "");
 
                print_modules();
                show_regs(regs);