arm, arm64, x86: add vprintk to early console
vprintk is created out of do_printk for all the archs. BUG=none TEST=Built Nyans, Falco, and Ryu. Verified serial output on Blaze and Falco. BRANCH=none Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Idf708359f0e9e9a9f32a601a5a117e469d5025ba Reviewed-on: https://chromium-review.googlesource.com/214566 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
parent
97761b4ad3
commit
75a0e78b5d
7 changed files with 66 additions and 63 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <stdint.h>
|
||||
#include <console/loglevel.h>
|
||||
#include <console/post_codes.h>
|
||||
#include <console/vtxprintf.h>
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
#include <uart.h>
|
||||
|
|
@ -81,6 +82,7 @@ void post_log_clear(void);
|
|||
void mainboard_post(u8 value);
|
||||
void __attribute__ ((noreturn)) die(const char *msg);
|
||||
int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||
int vprintk(int msg_level, const char *fmt, va_list args);
|
||||
|
||||
#if defined(__BOOT_BLOCK__) && !CONFIG_BOOTBLOCK_CONSOLE || \
|
||||
(defined(__PRE_RAM__) && !defined(__BOOT_BLOCK__)) && !CONFIG_EARLY_CONSOLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue