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();
 }
 
 #ifdef CONFIG_EARLY_PRINTK
 extern asmlinkage __printf(1, 2)
 void early_printk(const char *fmt, ...);
-void early_vprintk(const char *fmt, va_list ap);
 #else
 static inline __printf(1, 2) __cold
 void early_printk(const char *s, ...) { }
 
 #ifdef CONFIG_EARLY_PRINTK
 struct console *early_console;
 
-void early_vprintk(const char *fmt, va_list ap)
-{
-       if (early_console) {
-               char buf[512];
-               int n = vscnprintf(buf, sizeof(buf), fmt, ap);
-
-               early_console->write(early_console, buf, n);
-       }
-}
-
 asmlinkage __visible void early_printk(const char *fmt, ...)
 {
        va_list ap;
+       char buf[512];
+       int n;
+
+       if (!early_console)
+               return;
 
        va_start(ap, fmt);
-       early_vprintk(fmt, ap);
+       n = vscnprintf(buf, sizeof(buf), fmt, ap);
        va_end(ap);
+
+       early_console->write(early_console, buf, n);
 }
 #endif