src/console/init.c: Make get_log_level static inline again
CB:55356 removed static inline declarations from get_log_level(). This commit puts them back. It also changes the method of accessing static symbols in tests/console/routing-test to source file inclusion like in CB:46458 to avoid changing tested source file. Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: Iaa5dcbccb327f819374967be51ef642b1fb25e7b Reviewed-on: https://review.coreboot.org/c/coreboot/+/55473 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
2d2d61c7e1
commit
ab0bcaf732
@ -13,8 +13,7 @@
|
||||
static int console_inited;
|
||||
static int console_loglevel;
|
||||
|
||||
int get_log_level(void);
|
||||
int get_log_level(void)
|
||||
static inline int get_log_level(void)
|
||||
{
|
||||
if (console_inited == 0)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user