console: Add a way to output to serial only
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:13 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commit493a4c8af7a4939d96d6e2601282ca4a07c7570e
tree1d93231503b6d89dadf8480a92210e4580eccfbb
parent3dada5a1a89f336f4b751548117949cf255cfcf6
console: Add a way to output to serial only

In the video drivers it is useful to print errors while debugging but
doing so risks an infinite loop as the debugging info itself may go
through the video drivers.

Add a new console function that prints information only to the serial
device, thus making it safe for use in debugging.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/console.c
include/console.h