summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-10-11 23:14:25 -0500
committerMax Weffers <rcstar6696@gmail.com>2017-01-30 15:44:28 +0100
commit9d79cab03b7e3d370a9d12deab8ec9fdb97cfbb7 (patch)
tree8abf416fe39d34b54582171487d9428507784b4e /gps
parent8d26c6bb8e942d95bd231bf705840d1737569391 (diff)
gps: Fix the build
Change-Id: I77f1c3f1e795742c36fd91f8dba5eff7e488d4ac
Diffstat (limited to 'gps')
-rw-r--r--gps/core/gps_extended.h1
-rw-r--r--gps/core/loc_core_log.cpp15
-rw-r--r--gps/utils/loc_target.cpp1
-rw-r--r--gps/utils/log_util.h30
4 files changed, 17 insertions, 30 deletions
diff --git a/gps/core/gps_extended.h b/gps/core/gps_extended.h
index 88b0415..e164ff9 100644
--- a/gps/core/gps_extended.h
+++ b/gps/core/gps_extended.h
@@ -34,6 +34,7 @@ extern "C" {
#endif /* __cplusplus */
#include <gps_extended_c.h>
+#include <string.h>
struct LocPosMode
{
diff --git a/gps/core/loc_core_log.cpp b/gps/core/loc_core_log.cpp
index 461273f..7f61103 100644
--- a/gps/core/loc_core_log.cpp
+++ b/gps/core/loc_core_log.cpp
@@ -116,21 +116,6 @@ static loc_name_val_s_type loc_eng_aiding_data_bits[] =
NAME_VAL( GPS_DELETE_SADATA ),
NAME_VAL( GPS_DELETE_RTI ),
NAME_VAL( GPS_DELETE_CELLDB_INFO ),
- NAME_VAL( GPS_DELETE_ALMANAC_CORR ),
- NAME_VAL( GPS_DELETE_FREQ_BIAS_EST ),
- NAME_VAL( GLO_DELETE_EPHEMERIS ),
- NAME_VAL( GLO_DELETE_ALMANAC ),
- NAME_VAL( GLO_DELETE_SVDIR ),
- NAME_VAL( GLO_DELETE_SVSTEER ),
- NAME_VAL( GLO_DELETE_ALMANAC_CORR ),
- NAME_VAL( GPS_DELETE_TIME_GPS ),
- NAME_VAL( GLO_DELETE_TIME ),
- NAME_VAL( BDS_DELETE_SVDIR ),
- NAME_VAL( BDS_DELETE_SVSTEER ),
- NAME_VAL( BDS_DELETE_TIME ),
- NAME_VAL( BDS_DELETE_ALMANAC_CORR ),
- NAME_VAL( BDS_DELETE_EPHEMERIS ),
- NAME_VAL( BDS_DELETE_ALMANAC ),
NAME_VAL( GPS_DELETE_ALL)
};
static int loc_eng_aiding_data_bit_num = sizeof(loc_eng_aiding_data_bits) / sizeof(loc_name_val_s_type);
diff --git a/gps/utils/loc_target.cpp b/gps/utils/loc_target.cpp
index a3ef6b3..2e9ee52 100644
--- a/gps/utils/loc_target.cpp
+++ b/gps/utils/loc_target.cpp
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/gps/utils/log_util.h b/gps/utils/log_util.h
index 7fb0c78..b48c507 100644
--- a/gps/utils/log_util.h
+++ b/gps/utils/log_util.h
@@ -97,36 +97,36 @@ extern char* get_timestamp(char* str, unsigned long buf_size);
provide a value and we default to the initial value to use
Android's logging levels*/
#define LOC_LOGE(...) \
-if ((loc_logger.DEBUG_LEVEL >= 1) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("W/"__VA_ARGS__); } \
-else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGE("W/"__VA_ARGS__); }
+if ((loc_logger.DEBUG_LEVEL >= 1) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("W/" __VA_ARGS__); } \
+else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGE("W/" __VA_ARGS__); }
#define LOC_LOGW(...) \
-if ((loc_logger.DEBUG_LEVEL >= 2) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("W/"__VA_ARGS__); } \
-else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGW("W/"__VA_ARGS__); }
+if ((loc_logger.DEBUG_LEVEL >= 2) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("W/" __VA_ARGS__); } \
+else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGW("W/" __VA_ARGS__); }
#define LOC_LOGI(...) \
-if ((loc_logger.DEBUG_LEVEL >= 3) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("I/"__VA_ARGS__); } \
-else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGI("I/"__VA_ARGS__); }
+if ((loc_logger.DEBUG_LEVEL >= 3) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("I/" __VA_ARGS__); } \
+else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGI("I/" __VA_ARGS__); }
#define LOC_LOGD(...) \
-if ((loc_logger.DEBUG_LEVEL >= 4) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("D/"__VA_ARGS__); } \
-else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGD("D/"__VA_ARGS__); }
+if ((loc_logger.DEBUG_LEVEL >= 4) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("D/" __VA_ARGS__); } \
+else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGD("D/" __VA_ARGS__); }
#define LOC_LOGV(...) \
-if ((loc_logger.DEBUG_LEVEL >= 5) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("V/"__VA_ARGS__); } \
-else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGV("V/"__VA_ARGS__); }
+if ((loc_logger.DEBUG_LEVEL >= 5) && (loc_logger.DEBUG_LEVEL <= 5)) { ALOGE("V/" __VA_ARGS__); } \
+else if (loc_logger.DEBUG_LEVEL == 0xff) { ALOGV("V/" __VA_ARGS__); }
#else /* DEBUG_DMN_LOC_API */
-#define LOC_LOGE(...) ALOGE("E/"__VA_ARGS__)
+#define LOC_LOGE(...) ALOGE("E/" __VA_ARGS__)
-#define LOC_LOGW(...) ALOGW("W/"__VA_ARGS__)
+#define LOC_LOGW(...) ALOGW("W/" __VA_ARGS__)
-#define LOC_LOGI(...) ALOGI("I/"__VA_ARGS__)
+#define LOC_LOGI(...) ALOGI("I/" __VA_ARGS__)
-#define LOC_LOGD(...) ALOGD("D/"__VA_ARGS__)
+#define LOC_LOGD(...) ALOGD("D/" __VA_ARGS__)
-#define LOC_LOGV(...) ALOGV("V/"__VA_ARGS__)
+#define LOC_LOGV(...) ALOGV("V/" __VA_ARGS__)
#endif /* DEBUG_DMN_LOC_API */