tests/console: Add tests for log message routing behavior

Change-Id: Id978cfe4fa45fef9edbc3d3b55606ff6973521c5
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55356
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
This commit is contained in:
Patrick Georgi
2021-06-09 16:11:09 +02:00
parent ce55ca2fca
commit ae41dd3344
3 changed files with 77 additions and 1 deletions

View File

@ -13,7 +13,8 @@
static int console_inited;
static int console_loglevel;
static inline int get_log_level(void)
int get_log_level(void);
int get_log_level(void)
{
if (console_inited == 0)
return -1;