Merge tag 'pinctrl-v3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[cascardo/linux.git] / arch / tile / kernel / early_printk.c
index b608e00..aefb2c0 100644 (file)
@@ -43,13 +43,20 @@ static struct console early_hv_console = {
 
 void early_panic(const char *fmt, ...)
 {
-       va_list ap;
+       struct va_format vaf;
+       va_list args;
+
        arch_local_irq_disable_all();
-       va_start(ap, fmt);
-       early_printk("Kernel panic - not syncing: ");
-       early_vprintk(fmt, ap);
-       early_printk("\n");
-       va_end(ap);
+
+       va_start(args, fmt);
+
+       vaf.fmt = fmt;
+       vaf.va = &args;
+
+       early_printk("Kernel panic - not syncing: %pV", &vaf);
+
+       va_end(args);
+
        dump_stack();
        hv_halt();
 }