summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-06-14 09:32:11 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-06-15 16:12:52 +0000
commitab0bcaf732a5b0afd70f19ae58eb1c89bbf9209f (patch)
tree72cefd090dd69dfb82a5a9e51080a82a1d22f066 /src/console
parent2d2d61c7e1a70ff655c44f42065b31429fadd576 (diff)
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>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/console/init.c b/src/console/init.c
index 6fa48498a8..a2ceb58018 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -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;