summaryrefslogtreecommitdiff
path: root/utils/log_util.h
diff options
context:
space:
mode:
authorSatheesh Jayakumar <sjayakum@codeaurora.org>2013-05-07 09:25:21 -0700
committerSatheesh Jayakumar <sjayakum@codeaurora.org>2013-07-03 17:08:14 -0700
commit0590a64deb4ec63a27b779ae6bec91b2ae6eb980 (patch)
treebfd5e7b3734d305cbe1b0f478041a230e20a7e8f /utils/log_util.h
parent18875a4f8a3a84711e244c349e287d6510382528 (diff)
downloadgps-0590a64deb4ec63a27b779ae6bec91b2ae6eb980.tar.gz
hardware/qcom/gps: Porting HAL and Loc API 2.0
- Wrote makefiles, config and other files - Made code changes to minimize android dependencies Change-Id: I350de6378684f5db81a36cc4c6d014c5a8189d4c
Diffstat (limited to 'utils/log_util.h')
-rw-r--r--utils/log_util.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/utils/log_util.h b/utils/log_util.h
index 8a9647c..7fb0c78 100644
--- a/utils/log_util.h
+++ b/utils/log_util.h
@@ -30,6 +30,23 @@
#ifndef __LOG_UTIL_H__
#define __LOG_UTIL_H__
+#ifndef USE_GLIB
+#include <utils/Log.h>
+#endif /* USE_GLIB */
+
+#ifdef USE_GLIB
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#ifndef LOG_TAG
+#define LOG_TAG "GPS_UTILS"
+
+#endif // LOG_TAG
+
+#endif /* USE_GLIB */
+
#ifdef __cplusplus
extern "C"
{
@@ -72,9 +89,6 @@ extern const char ENTRY_TAG[];
extern void loc_logger_init(unsigned long debug, unsigned long timestamp);
extern char* get_timestamp(char* str, unsigned long buf_size);
-
-#include <utils/Log.h>
-
#ifndef DEBUG_DMN_LOC_API
/* LOGGING MACROS */