|
|
@@ -1881,23 +1881,20 @@ static size_t cont_print_text(char *text, size_t size) { return 0; }
|
|
|
#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
|
|
|
|