aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitreview5
-rw-r--r--homescreen/src/hmi-debug.h9
2 files changed, 10 insertions, 4 deletions
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..7e0852c
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.automotivelinux.org
+port=29418
+project=staging/homescreen-2017
+defaultbranch=master
diff --git a/homescreen/src/hmi-debug.h b/homescreen/src/hmi-debug.h
index 3240171..28705f5 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,
@@ -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;
@@ -66,4 +67,4 @@ static void _HMI_LOG(enum LOG_LEVEL level, const char* file, const char* func, c
free(message);
}
-#endif //__HMI_DEBUG_H__ \ No newline at end of file
+#endif //__HMI_DEBUG_H__