diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-11-09 13:03:54 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-11-09 13:03:54 +0900 |
commit | bba3ecca09453ca8a111e73636a50f8b67bd559e (patch) | |
tree | 569bda67177a65b67fbee361bfb632c2d86824f5 /homescreen | |
parent | 4940d001f08bec6fd68293efcbd6673a9ffce65e (diff) |
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 <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'homescreen')
-rw-r--r-- | homescreen/src/hmi-debug.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <time.h> #include <stdio.h> +#include <stdarg.h> #include <string.h> -#include <afb/afb-binding.h> +#include <stdlib.h> 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; |