72bb8aa940
Found using: diff <(git grep -l '#include <string.h>' -- src/) <(git grep -l 'STRINGIFY\|memcpy\|memmove\|memset\|memcmp\|memchr\|strdup\|strconcat\|strnlen\|strlen\|strchr\|strncpy\|strcpy\|strcmp\|strncmp\|strspn\|strcspn\|strstr\|strtok_r\|strtok\|atol\|strrchr\|skip_atoi\|snprintf' -- src/)|grep '<' Change-Id: I0d2c362ba9b494bf4cce280192ec0b91dce3e8bb Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50686 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
17 lines
384 B
C
17 lines
384 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <console/console.h>
|
|
#include <drivers/vpd/vpd.h>
|
|
|
|
#include "vpd.h"
|
|
|
|
int get_console_loglevel(void)
|
|
{
|
|
int log_level = COREBOOT_LOG_LEVEL_DEFAULT;
|
|
|
|
if (vpd_get_int(COREBOOT_LOG_LEVEL, VPD_RW_THEN_RO, &log_level)) {
|
|
if (log_level < 0 || log_level >= BIOS_NEVER)
|
|
log_level = COREBOOT_LOG_LEVEL_DEFAULT;
|
|
}
|
|
return log_level;
|
|
}
|