summaryrefslogtreecommitdiff
path: root/location/LocationAPIClientBase.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-08-08 04:43:25 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-08-08 04:43:25 -0700
commitac16b8d821e42c93cbdb20ddef590a8ecc2beb27 (patch)
treea093f3daf7e3c597adf7f4a2f78dd78e3dce3714 /location/LocationAPIClientBase.cpp
parent471853fda24e6e3462fa5d207a66d42b8ea2ff75 (diff)
parent4c9c7839892c4272c30dcf3288bbe4d52649bced (diff)
downloadgps-ac16b8d821e42c93cbdb20ddef590a8ecc2beb27.tar.gz
Merge "Clean up compiler warning message"
Diffstat (limited to 'location/LocationAPIClientBase.cpp')
-rw-r--r--location/LocationAPIClientBase.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/location/LocationAPIClientBase.cpp b/location/LocationAPIClientBase.cpp
index 7fe8470..070c585 100644
--- a/location/LocationAPIClientBase.cpp
+++ b/location/LocationAPIClientBase.cpp
@@ -30,6 +30,7 @@
#define LOG_TAG "LocSvc_APIClientBase"
#include <platform_lib_log_util.h>
+#include <inttypes.h>
#include <loc_cfg.h>
#include "LocationAPIClientBase.h"
@@ -604,7 +605,7 @@ void LocationAPIClientBase::locAPIRemoveGeofences(size_t count, uint32_t* ids)
if (mLocationAPI) {
uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count);
if (sessions == NULL) {
- LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
+ LOC_LOGE("%s:%d] Failed to allocate %zu bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
pthread_mutex_unlock(&mMutex);
return;
@@ -639,7 +640,7 @@ void LocationAPIClientBase::locAPIModifyGeofences(
if (mLocationAPI) {
uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count);
if (sessions == NULL) {
- LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
+ LOC_LOGE("%s:%d] Failed to allocate %zu bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
pthread_mutex_unlock(&mMutex);
return;
@@ -674,7 +675,7 @@ void LocationAPIClientBase::locAPIPauseGeofences(size_t count, uint32_t* ids)
if (mLocationAPI) {
uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count);
if (sessions == NULL) {
- LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
+ LOC_LOGE("%s:%d] Failed to allocate %zu bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
pthread_mutex_unlock(&mMutex);
return;
@@ -709,7 +710,7 @@ void LocationAPIClientBase::locAPIResumeGeofences(
if (mLocationAPI) {
uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count);
if (sessions == NULL) {
- LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
+ LOC_LOGE("%s:%d] Failed to allocate %zu bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
pthread_mutex_unlock(&mMutex);
return;
@@ -748,7 +749,7 @@ void LocationAPIClientBase::locAPIRemoveAllGeofences()
size_t count = sessionsVec.size();
uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count);
if (sessions == NULL) {
- LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
+ LOC_LOGE("%s:%d] Failed to allocate %zu bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
pthread_mutex_unlock(&mMutex);
return;
@@ -798,7 +799,7 @@ void LocationAPIClientBase::beforeGeofenceBreachCb(
geofenceBreachCallback genfenceCallback = nullptr;
if (ids == NULL) {
- LOC_LOGE("%s:%d] Failed to alloc %d bytes",
+ LOC_LOGE("%s:%d] Failed to alloc %zu bytes",
__FUNCTION__, __LINE__,
sizeof(uint32_t) * geofenceBreachNotification.count);
return;