1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <drivers/vpd/vpd.h>
9 int get_console_loglevel(void)
11 int log_level
= COREBOOT_LOG_LEVEL_DEFAULT
;
13 if (vpd_get_int(COREBOOT_LOG_LEVEL
, VPD_RW_THEN_RO
, &log_level
)) {
14 if (log_level
< 0 || log_level
>= BIOS_NEVER
)
15 log_level
= COREBOOT_LOG_LEVEL_DEFAULT
;