Fixed GCC diagnostic error -Wformat 50/133950/1 accepted/tizen/unified/20170626.011636 submit/tizen/20170614.072519
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 14 Jun 2017 05:20:21 +0000 (14:20 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 14 Jun 2017 05:20:24 +0000 (14:20 +0900)
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>
mv_barcode/barcode_generator/src/mv_barcode_generate_open.cpp
mv_face/face/src/FaceRecognitionModel.cpp
mv_surveillance/surveillance/src/EventManager.cpp
mv_surveillance/surveillance/src/EventTrigger.cpp
packaging/capi-media-vision.spec

index 0663866bf4d1b08a5fe253bb38571f1e05931ae2..62a3c823f68716607a857c5d9a473142c588bf4b 100644 (file)
@@ -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;
        }
index 2b3331297f4903712d39fff210951ae5d7d01689..1037be031c988fade793ebf9261aa31b07c0aedf 100644 (file)
@@ -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())
index f3830926bb81695a27a0bebf49ce8f2921f4695d..77787f39543f6147a6978432fc486bdca2cc2222 100644 (file)
@@ -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);
index 48a64da207ad30cf9c7cfc79d99595d2e1de3013..d6589906783674618581bc1f8330214286ec5aaa 100644 (file)
@@ -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;
        }
index ab8ad0983827e38b3a4a8ded28ad8a346727466f..d87c2bf9e8c3c41bf88fd62e2edf74b430927c4e 100644 (file)
@@ -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