From 5f583c63753f2edb9cbb8a5497e08007ce4ad397 Mon Sep 17 00:00:00 2001 From: Harikrishnan Hariharan Date: Thu, 14 Sep 2017 22:50:42 +0530 Subject: 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 --- utils/log_util.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils/log_util.h') 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 -#endif /* USE_GLIB */ - -#ifdef USE_GLIB +#elif defined (USE_GLIB) +// LE targets with no logcat support #include #include #include @@ -45,7 +45,7 @@ #endif // LOG_TAG -#endif /* USE_GLIB */ +#endif /* #if defined (USE_ANDROID_LOGGING) || defined (ANDROID) */ #ifdef __cplusplus extern "C" -- cgit v1.2.3