From: Dewal Agarwal Date: Wed, 12 Dec 2018 04:35:42 +0000 (+0530) Subject: Dlog Print Format Updates X-Git-Tag: accepted/tizen/5.5/unified/20191031.024300^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fcore%2Fcontext%2Fcontext-store.git Dlog Print Format Updates Change-Id: I07ed42b436ad484619d5b96ffe713416d82170e7 Signed-off-by: Dewal Agarwal --- diff --git a/src/server/ContextStore.cpp b/src/server/ContextStore.cpp index 5f5c05b..3693e4c 100644 --- a/src/server/ContextStore.cpp +++ b/src/server/ContextStore.cpp @@ -55,7 +55,7 @@ int ContextStore::insert(const std::string& columns, std::shared_ptr tupl int ContextStore::insert(const std::string& columns, std::vector>& tuples) { - _D("[%s] %s, #records = %d", __isSystem ? "system" : "user", __uri.c_str(), tuples.size()); + _D("[%s] %s, #records = %zd", __isSystem ? "system" : "user", __uri.c_str(), tuples.size()); Store* store = __getStore(__hostService, __uri, __isSystem); IF_FAIL_RETURN_TAG(store, E_PARAM, _E, "Failed to find the store"); diff --git a/src/server/Store.cpp b/src/server/Store.cpp index c32ea44..7e0f797 100644 --- a/src/server/Store.cpp +++ b/src/server/Store.cpp @@ -47,7 +47,7 @@ int Store::insert(IClient& client, const std::string& columns, std::vector>& tuples) { - _D("Inserting %u tuples of (%s) to %s", tuples.size(), columns.c_str(), metadata.uri.c_str()); + _D("Inserting %zu tuples of (%s) to %s", tuples.size(), columns.c_str(), metadata.uri.c_str()); int error = __getDatabase().insert(metadata.uri, columns, tuples) ? E_NONE : E_PARAM; tuples.clear();