summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console/init.c2
-rw-r--r--src/include/console/console.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/console/init.c b/src/console/init.c
index 4427d681e2..eb6b637a6c 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -13,7 +13,7 @@
static int console_inited;
static int console_loglevel;
-static inline int get_log_level(void)
+int get_log_level(void)
{
if (console_inited == 0)
return -1;
diff --git a/src/include/console/console.h b/src/include/console/console.h
index 8849df363c..5546aa98e5 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -47,6 +47,7 @@ static inline int get_console_loglevel(void)
ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)))
#if __CONSOLE_ENABLE__
+int get_log_level(void);
void console_init(void);
int console_log_level(int msg_level);
@@ -62,6 +63,7 @@ void console_time_report(void);
enum { CONSOLE_LOG_NONE = 0, CONSOLE_LOG_FAST, CONSOLE_LOG_ALL };
#else
+static inline int get_log_level(void) { return -1; }
static inline void console_init(void) {}
static inline int console_log_level(int msg_level) { return 0; }
static inline int