console: Hide global console_loglevel
Change-Id: I7bdc468bc3f74516abb2c583bdb5b6d7555d987c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5333 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
committed by
Patrick Georgi
parent
b2d2596714
commit
56ae13983b
@ -29,8 +29,14 @@
|
||||
#include <device/pci.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__PRE_RAM__)
|
||||
int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
||||
#if !defined(__ROMCC__)
|
||||
/* While in romstage, console loglevel is built-time constant. */
|
||||
static ROMSTAGE_CONST int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
||||
|
||||
int console_log_level(int msg_level)
|
||||
{
|
||||
return (console_loglevel >= msg_level);
|
||||
}
|
||||
#endif
|
||||
|
||||
void console_init(void)
|
||||
|
Reference in New Issue
Block a user