From 20b50ad4e8b00176852aeb486c8eefa6f93d9c3b Mon Sep 17 00:00:00 2001 From: "Yan, Like" Date: Tue, 19 Jun 2018 13:32:59 +0800 Subject: [PATCH] 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 Signed-off-by: Yan, Like --- hypervisor/arch/x86/Kconfig | 4 ++-- hypervisor/debug/shell_internal.c | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/hypervisor/arch/x86/Kconfig b/hypervisor/arch/x86/Kconfig index cdb098d6c..80a2c89a4 100644 --- a/hypervisor/arch/x86/Kconfig +++ b/hypervisor/arch/x86/Kconfig @@ -81,11 +81,11 @@ config HEAP_SIZE config CONSOLE_LOGLEVEL_DEFAULT int "Default loglevel on the serial console" - default 2 + default 3 config MEM_LOGLEVEL_DEFAULT int "Default loglevel in memory" - default 4 + default 5 config LOW_RAM_SIZE hex "Size of the low RAM region" diff --git a/hypervisor/debug/shell_internal.c b/hypervisor/debug/shell_internal.c index ecfea89ee..80a94b575 100644 --- a/hypervisor/debug/shell_internal.c +++ b/hypervisor/debug/shell_internal.c @@ -28,14 +28,8 @@ #define SHELL_INPUT_LINE_OTHER(v) (((v) + 1) % 2) /* The initial log level*/ -uint32_t console_loglevel; -uint32_t mem_loglevel; -#ifdef CONFIG_CONSOLE_LOGLEVEL_DEFAULT uint32_t console_loglevel = CONFIG_CONSOLE_LOGLEVEL_DEFAULT; -#endif -#ifdef CONFIG_MEM_LOGLEVEL_DEFAULT uint32_t mem_loglevel = CONFIG_MEM_LOGLEVEL_DEFAULT; -#endif static int string_to_argv(char *argv_str, void *p_argv_mem, __unused uint32_t argv_mem_size, int *p_argc, char ***p_argv)