console: Make get_log_level a public function
Other drivers may need to know the coreboot log level hence, export this function rather than marking it static. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I56349f22c71c9db757b2be8eeb2dbfe959f80397 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60470 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
committed by
Nico Huber
parent
83ef7a647d
commit
627313081e
@ -13,7 +13,7 @@
|
|||||||
static int console_inited;
|
static int console_inited;
|
||||||
static int console_loglevel;
|
static int console_loglevel;
|
||||||
|
|
||||||
static inline int get_log_level(void)
|
int get_log_level(void)
|
||||||
{
|
{
|
||||||
if (console_inited == 0)
|
if (console_inited == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -47,6 +47,7 @@ static inline int get_console_loglevel(void)
|
|||||||
ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)))
|
ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)))
|
||||||
|
|
||||||
#if __CONSOLE_ENABLE__
|
#if __CONSOLE_ENABLE__
|
||||||
|
int get_log_level(void);
|
||||||
void console_init(void);
|
void console_init(void);
|
||||||
int console_log_level(int msg_level);
|
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 };
|
enum { CONSOLE_LOG_NONE = 0, CONSOLE_LOG_FAST, CONSOLE_LOG_ALL };
|
||||||
#else
|
#else
|
||||||
|
static inline int get_log_level(void) { return -1; }
|
||||||
static inline void console_init(void) {}
|
static inline void console_init(void) {}
|
||||||
static inline int console_log_level(int msg_level) { return 0; }
|
static inline int console_log_level(int msg_level) { return 0; }
|
||||||
static inline int
|
static inline int
|
||||||
|
Reference in New Issue
Block a user