Skip to content

Commit 20b50ad

Browse files
lyan3lijinxia
authored andcommitted
HV: correct loglevel definitions and default values
1. remove duplicated definitions of mem_loglevel/console_loglevel; 2. Set default loglevels to display important messages: - CONSOLE_LOGLEVEL_DEFALUT is changed from 2 to 3; - MEM_LOGLEVEL_DEFAULT is changed from 4 to 5. Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Yan, Like <like.yan@intel.com>
1 parent 6137ccd commit 20b50ad

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

hypervisor/arch/x86/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ config HEAP_SIZE
8181

8282
config CONSOLE_LOGLEVEL_DEFAULT
8383
int "Default loglevel on the serial console"
84-
default 2
84+
default 3
8585

8686
config MEM_LOGLEVEL_DEFAULT
8787
int "Default loglevel in memory"
88-
default 4
88+
default 5
8989

9090
config LOW_RAM_SIZE
9191
hex "Size of the low RAM region"

hypervisor/debug/shell_internal.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@
2828
#define SHELL_INPUT_LINE_OTHER(v) (((v) + 1) % 2)
2929

3030
/* The initial log level*/
31-
uint32_t console_loglevel;
32-
uint32_t mem_loglevel;
33-
#ifdef CONFIG_CONSOLE_LOGLEVEL_DEFAULT
3431
uint32_t console_loglevel = CONFIG_CONSOLE_LOGLEVEL_DEFAULT;
35-
#endif
36-
#ifdef CONFIG_MEM_LOGLEVEL_DEFAULT
3732
uint32_t mem_loglevel = CONFIG_MEM_LOGLEVEL_DEFAULT;
38-
#endif
3933

4034
static int string_to_argv(char *argv_str, void *p_argv_mem,
4135
__unused uint32_t argv_mem_size, int *p_argc, char ***p_argv)

0 commit comments

Comments
 (0)