summaryrefslogtreecommitdiffstats
path: root/src/console/init.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-19 15:20:28 +0200
committerAngel Pons <th3fanbus@gmail.com>2021-04-23 10:13:39 +0000
commite76f15f4fdf2d2094b351a6a1a95dec1c63d017c (patch)
tree36d512dd783fd494bcd225250db102ca849020dc /src/console/init.c
parent3aa757d7056bf7f231da12ca211cba4b2f6c68be (diff)
downloadcoreboot-e76f15f4fdf2d2094b351a6a1a95dec1c63d017c.tar.gz
coreboot-e76f15f4fdf2d2094b351a6a1a95dec1c63d017c.tar.bz2
coreboot-e76f15f4fdf2d2094b351a6a1a95dec1c63d017c.zip
src: Replace remaining {get,set}_option() instances
With this change, the type-unsafe {get,set}_option() API functions are no longer used directly. The old API gets dropped in a follow-up. Change-Id: Id3f3e172c850d50a7d2f348b1c3736969c73837d Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52512 Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/console/init.c')
-rw-r--r--src/console/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/init.c b/src/console/init.c
index c59807785c01..fdc1467cdd44 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -26,7 +26,7 @@ static void init_log_level(void)
console_loglevel = get_console_loglevel();
if (!FIRST_CONSOLE)
- get_option(&console_loglevel, "debug_level");
+ console_loglevel = get_int_option("debug_level", console_loglevel);
}
int console_log_level(int msg_level)