diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2017-06-14 14:20:21 +0900 |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2017-06-14 14:20:24 +0900 |
commit | e5d9d53a25588ec00728aa34d765aaa8754cae22 (patch) | |
tree | 148337d9892a16a10154047f9ae4026c0df79050 | |
parent | 282200522803cb9f8c543534d5cab16a08fa09df (diff) | |
download | mediavision-accepted/tizen/unified/20170626.011636.tar.gz mediavision-accepted/tizen/unified/20170626.011636.tar.bz2 mediavision-accepted/tizen/unified/20170626.011636.zip |
Fixed GCC diagnostic error -Wformatsubmit/tizen/20170614.072519accepted/tizen/unified/20170626.011636
In printf(),
Percent character % should be %%,
long int type should be %ld,
size_t type should be %zu.
Change-Id: I0ac1ff152120f847abed89ce9953409cb6ec0c88
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r-- | mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp | 2 | ||||
-rw-r--r-- | mv_face/face/src/FaceRecognitionModel.cpp | 4 | ||||
-rw-r--r-- | mv_surveillance/surveillance/src/EventManager.cpp | 4 | ||||
-rw-r--r-- | mv_surveillance/surveillance/src/EventTrigger.cpp | 4 | ||||
-rw-r--r-- | packaging/capi-media-vision.spec | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp b/mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp index 0663866b..62a3c823 100644 --- a/mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp +++ b/mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp @@ -37,7 +37,7 @@ int alphanumToUpper(std::string& strToTransform) if (std::string::npos != tempString.find_first_not_of( "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")) { LOGE("Barcode message can't be converted according to support " - "alphanumeric (0..9, A..Z, space, $, %, *, +, -, ., /, :) " + "alphanumeric (0..9, A..Z, space, $, %%, *, +, -, ., /, :) " "mode: %s", strToTransform.c_str()); return BARCODE_ERROR_INVALID_DATA; } diff --git a/mv_face/face/src/FaceRecognitionModel.cpp b/mv_face/face/src/FaceRecognitionModel.cpp index 2b333129..1037be03 100644 --- a/mv_face/face/src/FaceRecognitionModel.cpp +++ b/mv_face/face/src/FaceRecognitionModel.cpp @@ -432,7 +432,7 @@ int FaceRecognitionModel::learn(const FaceRecognitionModelConfig& config) learnedLabels.insert(it->first); if (!isUnisize) { - LOGD("%u examples has been added with label %i", + LOGD("%zu examples has been added with label %i", it->second.size(), it->first); samples.insert(samples.end(), it->second.begin(), it->second.end()); } else { @@ -451,7 +451,7 @@ int FaceRecognitionModel::learn(const FaceRecognitionModelConfig& config) const size_t labelsSize = labels.size(); if (0 != samplesSize && samplesSize == labelsSize) { - LOGD("Start to learn the model for %u samples and %u labels", + LOGD("Start to learn the model for %zu samples and %zu labels", samplesSize, labelsSize); if (m_learnAlgorithmConfig != config || m_recognizer.empty()) diff --git a/mv_surveillance/surveillance/src/EventManager.cpp b/mv_surveillance/surveillance/src/EventManager.cpp index f3830926..77787f39 100644 --- a/mv_surveillance/surveillance/src/EventManager.cpp +++ b/mv_surveillance/surveillance/src/EventManager.cpp @@ -116,7 +116,7 @@ int EventManager::registerEvent( for (; iter != __eventTriggers[videoStreamId].end(); ++iter) { if ((*iter)->isCallbackSubscribed(triggerId)) { - LOGE("Callback with id %d is already subscribed. " + LOGE("Callback with id %ld is already subscribed. " "Event registering failed.", triggerId); return MEDIA_VISION_ERROR_INVALID_PARAMETER; } @@ -334,7 +334,7 @@ int EventManager::pushSource(mv_source_h source, int videoStreamId) error = (*iter)->pushSource(source, graySource, grayImage); if (error != MEDIA_VISION_ERROR_NONE) - LOGE("Push source failed for event ", (*iter)->getEventType().c_str()); + LOGE("Push source failed for event %s", (*iter)->getEventType().c_str()); } error = mv_destroy_source(graySource); diff --git a/mv_surveillance/surveillance/src/EventTrigger.cpp b/mv_surveillance/surveillance/src/EventTrigger.cpp index 48a64da2..d6589906 100644 --- a/mv_surveillance/surveillance/src/EventTrigger.cpp +++ b/mv_surveillance/surveillance/src/EventTrigger.cpp @@ -74,7 +74,7 @@ bool EventTrigger::subscribeCallback( bool isInternal) { if (isCallbackSubscribed(triggerId)) { - LOGE("Callback with id %d is already subscribed. " + LOGE("Callback with id %ld is already subscribed. " "Callback subscribing failed.", triggerId); return false; } @@ -102,7 +102,7 @@ bool EventTrigger::unsubscribeCallback(long int triggerId) CallbackDataMapIter iter = __callbackDataMap.find(triggerId); if (iter == __callbackDataMap.end()) { - LOGE("Callback with id %d was not subscribed. " + LOGE("Callback with id %ld was not subscribed. " "Callback unsubscribing failed.", triggerId); return false; } diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index ab8ad098..d87c2bf9 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,6 +1,6 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.3.25 +Version: 0.3.26 Release: 0 Group: Multimedia/Framework License: Apache-2.0 and BSD-3-Clause |