X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhmi-debug.h;h=2a744ba4fceb7ebaf09a7b5c964a3f9bc04351bb;hb=321f08ed8d0a4d3b1f4bd486e8a4240f4d3443ee;hp=32401714b195931a38687c00781b17e0198cc0f5;hpb=599de8d3f35cb0fe56c7e27591862d61944b456b;p=apps%2Fagl-service-homescreen.git diff --git a/src/hmi-debug.h b/src/hmi-debug.h index 3240171..2a744ba 100644 --- a/src/hmi-debug.h +++ b/src/hmi-debug.h @@ -19,8 +19,9 @@ #include #include +#include #include -#include +#include enum LOG_LEVEL{ LOG_LEVEL_NONE = 0, @@ -29,7 +30,7 @@ enum LOG_LEVEL{ LOG_LEVEL_NOTICE, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, - LOG_LEVEL_MAX = LOG_LEVEL_ERROR + LOG_LEVEL_MAX = LOG_LEVEL_DEBUG }; #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) @@ -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;