diff options
author | Ruifeng Xu <ruifeng@codeaurora.org> | 2016-04-15 16:09:15 -0700 |
---|---|---|
committer | Ruifeng Xu <ruifeng@codeaurora.org> | 2016-04-15 16:10:34 -0700 |
commit | d4c4fbf56ba878f3592854a4398a72fd7073a3f9 (patch) | |
tree | 34349ac108a0f32981d1c946c151b67ba30f954e /utils/log_util.h | |
parent | c3a4fba9b887c147c5971d68b473c35d1001804c (diff) | |
download | gps-d4c4fbf56ba878f3592854a4398a72fd7073a3f9.tar.gz |
XTRA Client 2.0
This project implemented XTRA "Enhancements" grouped as XTRA Client 2.0.
1. Added NTP_SERVER config into gps.conf
2. Removed XTRA Client 2.0 Phase 1 code changes
3. Disabled public api to delete aiding data in user build
CRs-fixed: 917950
Change-Id: I18b31da74c9fe0c24d0ced3770f099197ad32d9a
Diffstat (limited to 'utils/log_util.h')
-rw-r--r-- | utils/log_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/log_util.h b/utils/log_util.h index ffd5ca9..d27c800 100644 --- a/utils/log_util.h +++ b/utils/log_util.h @@ -159,6 +159,12 @@ else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGV("V/" __VA_ARGS__); } } \ } while(0) +#define LOC_LOG_HEAD(tag,fmt) "%s:%d][" tag "] " fmt "\n" +#define LOC_LOGv(tag,fmt,...) LOC_LOGV(LOC_LOG_HEAD(tag,fmt), __func__, __LINE__, ##__VA_ARGS__) +#define LOC_LOGw(tag,fmt,...) LOC_LOGW(LOC_LOG_HEAD(tag,fmt), __func__, __LINE__, ##__VA_ARGS__) +#define LOC_LOGd(tag,fmt,...) LOC_LOGD(LOC_LOG_HEAD(tag,fmt), __func__, __LINE__, ##__VA_ARGS__) +#define LOC_LOGe(tag,fmt,...) LOC_LOGE(LOC_LOG_HEAD(tag,fmt), __func__, __LINE__, ##__VA_ARGS__) + #define LOG_I(ID, WHAT, SPEC, VAL) LOG_(LOC_LOGI, ID, WHAT, SPEC, VAL) #define LOG_V(ID, WHAT, SPEC, VAL) LOG_(LOC_LOGV, ID, WHAT, SPEC, VAL) #define LOG_E(ID, WHAT, SPEC, VAL) LOG_(LOC_LOGE, ID, WHAT, SPEC, VAL) |