diff options
Diffstat (limited to 'src/console/printk.c')
-rw-r--r-- | src/console/printk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/console/printk.c b/src/console/printk.c index 2f7e27719b..c10cf97dc4 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -44,13 +44,12 @@ int do_printk(int msg_level, const char *fmt, ...) va_list args; int i; - if (!console_log_level(msg_level)) + if (IS_ENABLED(CONFIG_SQUELCH_EARLY_SMP) && ENV_CACHE_AS_RAM && + !boot_cpu()) return 0; -#if IS_ENABLED (CONFIG_SQUELCH_EARLY_SMP) && defined(__PRE_RAM__) - if (!boot_cpu()) + if (!console_log_level(msg_level)) return 0; -#endif DISABLE_TRACE; #ifdef __PRE_RAM__ |