From 031cdd410fe1b44e1768e0e7fff8f7829251f947 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Thu, 22 Jun 2017 18:29:11 +0900 Subject: [PATCH] Fix to VD build error Change-Id: I555e0141036c6a5347cc9bc76a355af3c5dd5268 Signed-off-by: kj7.sung --- location/manager/location-gps.c | 4 ++-- location/manager/location-hybrid-mobile.c | 2 +- location/manager/location-passive.c | 4 ++-- location/manager/location-wps.c | 6 +++--- location/manager/location.c | 2 +- packaging/liblbs-location.spec | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/location/manager/location-gps.c b/location/manager/location-gps.c index bfdf34f..60d746a 100755 --- a/location/manager/location-gps.c +++ b/location/manager/location-gps.c @@ -670,13 +670,13 @@ static void location_gps_set_property(GObject *object, guint property_id, const } case PROP_MIN_DISTANCE: { gdouble distance = g_value_get_double(value); - LOCATION_LOGD("Set prop>> PROP_MIN_DISTANCE: %u", distance); + LOCATION_LOGD("Set prop>> PROP_MIN_DISTANCE: %f", distance); priv->min_distance = distance; break; } case PROP_SERVICE_STATUS: { gint enabled = g_value_get_int(value); - LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %u", enabled); + LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %d", enabled); priv->enabled = enabled; break; } diff --git a/location/manager/location-hybrid-mobile.c b/location/manager/location-hybrid-mobile.c index 8878dd4..da74da2 100755 --- a/location/manager/location-hybrid-mobile.c +++ b/location/manager/location-hybrid-mobile.c @@ -701,7 +701,7 @@ location_hybrid_set_property(GObject *object, guint property_id, const GValue *v } case PROP_MIN_DISTANCE: { gdouble distance = g_value_get_double(value); - LOCATION_LOGD("Set prop>> PROP_MIN_DISTANCE: %u", distance); + LOCATION_LOGD("Set prop>> PROP_MIN_DISTANCE: %f", distance); if (distance > 0) { if (distance < LOCATION_MIN_DISTANCE_MAX) priv->min_distance = distance; diff --git a/location/manager/location-passive.c b/location/manager/location-passive.c index c7db7fa..b58d087 100755 --- a/location/manager/location-passive.c +++ b/location/manager/location-passive.c @@ -362,7 +362,7 @@ static void location_passive_set_property(GObject *object, guint property_id, co } case PROP_MIN_DISTANCE: { gdouble distance = g_value_get_double(value); - LOCATION_LOGD("Set prop>> update-min-distance: %u", distance); + LOCATION_LOGD("Set prop>> update-min-distance: %f", distance); if (distance > 0) { if (distance < LOCATION_MIN_DISTANCE_MAX) priv->min_distance = distance; @@ -376,7 +376,7 @@ static void location_passive_set_property(GObject *object, guint property_id, co } case PROP_SERVICE_STATUS: { gint enabled = g_value_get_int(value); - LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %u", enabled); + LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %d", enabled); priv->enabled = enabled; break; } diff --git a/location/manager/location-wps.c b/location/manager/location-wps.c index a268c4c..2c4d7ed 100755 --- a/location/manager/location-wps.c +++ b/location/manager/location-wps.c @@ -140,7 +140,7 @@ __set_started(gpointer self, gboolean started) static void wps_status_cb(gboolean enabled, LocationStatus status, gpointer self) { - LOCATION_LOGD("status = %d, status"); + LOC_FUNC_LOG g_return_if_fail(self); LocationWpsPrivate *priv = GET_PRIVATE(self); g_return_if_fail(priv); @@ -413,7 +413,7 @@ location_wps_set_property(GObject *object, guint property_id, const GValue *valu } case PROP_MIN_DISTANCE: { gdouble distance = g_value_get_double(value); - LOCATION_LOGD("Set prop>> update-min-distance: %u", distance); + LOCATION_LOGD("Set prop>> update-min-distance: %f", distance); if (distance > 0) { if (distance < LOCATION_MIN_DISTANCE_MAX) priv->min_distance = distance; @@ -426,7 +426,7 @@ location_wps_set_property(GObject *object, guint property_id, const GValue *valu } case PROP_SERVICE_STATUS: { gint enabled = g_value_get_int(value); - LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %u", enabled); + LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %d", enabled); priv->enabled = enabled; break; } diff --git a/location/manager/location.c b/location/manager/location.c index 9a82d71..9b09046 100755 --- a/location/manager/location.c +++ b/location/manager/location.c @@ -237,7 +237,7 @@ location_stop_batch(LocationObject *obj) g_return_val_if_fail(obj, LOCATION_ERROR_PARAMETER); int ret = LOCATION_ERROR_NONE; ret = location_ielement_stop_batch(LOCATION_IELEMENT(obj)); - LOC_IF_FAIL(ret, _E, "Fail to stop_batch [%d]", err_msg(ret)); + LOC_IF_FAIL(ret, _E, "Fail to stop_batch [%s]", err_msg(ret)); return ret; } diff --git a/packaging/liblbs-location.spec b/packaging/liblbs-location.spec index 7bc6b3f..ac47998 100755 --- a/packaging/liblbs-location.spec +++ b/packaging/liblbs-location.spec @@ -1,6 +1,6 @@ Name: liblbs-location Summary: Location Based Service Library -Version: 1.3.11 +Version: 1.3.12 Release: 1 Group: Location/Libraries License: Apache-2.0 -- 2.7.4