From bba3ecca09453ca8a111e73636a50f8b67bd559e Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Thu, 9 Nov 2017 13:03:54 +0900 Subject: Set default debug level to error Default enable HMI_ERROR output. Remove afb-binding.h and add necessary header files. Signed-off-by: zheng_wenlong --- homescreen/src/hmi-debug.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'homescreen') diff --git a/homescreen/src/hmi-debug.h b/homescreen/src/hmi-debug.h index 3240171..a6a5d80 100644 --- a/homescreen/src/hmi-debug.h +++ b/homescreen/src/hmi-debug.h @@ -19,8 +19,9 @@ #include #include +#include #include -#include +#include enum LOG_LEVEL{ LOG_LEVEL_NONE = 0, @@ -44,7 +45,7 @@ static char ERROR_FLAG[6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", " static void _HMI_LOG(enum LOG_LEVEL level, const char* file, const char* func, const int line, const char* prefix, const char* log, ...) { - const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?0:atoi(getenv("USE_HMI_DEBUG")); + const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?LOG_LEVEL_ERROR:atoi(getenv("USE_HMI_DEBUG")); if(log_level < level) { return; -- cgit 1.2.3-korg