summaryrefslogtreecommitdiff
path: root/utils/log_util.h
diff options
context:
space:
mode:
authorHarikrishnan Hariharan <hahariha@codeaurora.org>2017-09-14 22:50:42 +0530
committerHarikrishnan Hariharan <hahariha@codeaurora.org>2017-10-16 14:44:36 +0530
commit5f583c63753f2edb9cbb8a5497e08007ce4ad397 (patch)
tree7d7e129b6af53ef0b99c7e28f47a8125e98af13c /utils/log_util.h
parent9f2a492534a5ac5ec505296c7f2e86358cfac498 (diff)
downloadgps-5f583c63753f2edb9cbb8a5497e08007ce4ad397.tar.gz
Enable logcat logging for location modules in LE
Add support for logcat logging for location modules in LE, by adding appropriate flags -llog to LDFLAGS. Update logging macros to use ALOG* so that logs can be outputed using standard logcat adb commands. Change-Id: I94b5a1e9f0b4ec78a55e7189002e0f674ef174d2 CRs-Fixed: 2117669
Diffstat (limited to 'utils/log_util.h')
-rw-r--r--utils/log_util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/log_util.h b/utils/log_util.h
index 7eb338a..d5884b7 100644
--- a/utils/log_util.h
+++ b/utils/log_util.h
@@ -30,12 +30,12 @@
#ifndef __LOG_UTIL_H__
#define __LOG_UTIL_H__
-#ifndef USE_GLIB
+#if defined (USE_ANDROID_LOGGING) || defined (ANDROID)
+// Android and LE targets with logcat support
#include <utils/Log.h>
-#endif /* USE_GLIB */
-
-#ifdef USE_GLIB
+#elif defined (USE_GLIB)
+// LE targets with no logcat support
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
@@ -45,7 +45,7 @@
#endif // LOG_TAG
-#endif /* USE_GLIB */
+#endif /* #if defined (USE_ANDROID_LOGGING) || defined (ANDROID) */
#ifdef __cplusplus
extern "C"