summaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 9f441c44f17..e5e69ff0fad 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -767,11 +767,10 @@ static int initf_bootstage(void)
static int initf_console_record(void)
{
-#if defined(CONFIG_CONSOLE_RECORD) && CONFIG_VAL(SYS_MALLOC_F_LEN)
- return console_record_init();
-#else
+ if (IS_ENABLED(CONFIG_CONSOLE_RECORD_INIT_F))
+ return console_record_init();
+
return 0;
-#endif
}
static int initf_dm(void)