diff options
Diffstat (limited to 'src/console/init.c')
-rw-r--r-- | src/console/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/init.c b/src/console/init.c index 422315ad2a..78c568f96e 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -34,7 +34,7 @@ static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; static inline int get_log_level(void) { if (CONSOLE_LEVEL_CONST) - return CONFIG_DEFAULT_CONSOLE_LOGLEVEL; + return get_console_loglevel(); return console_loglevel; } @@ -49,7 +49,7 @@ static inline void set_log_level(int new_level) static void init_log_level(void) { - int debug_level = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; + int debug_level = get_console_loglevel(); if (CONSOLE_LEVEL_CONST) return; |