Fix svace issue[WGID=443239] 14/239014/1 accepted/tizen/unified/20200722.144612 submit/tizen/20200721.063155
authorInki Dae <inki.dae@samsung.com>
Tue, 21 Jul 2020 05:42:58 +0000 (14:42 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 21 Jul 2020 05:42:58 +0000 (14:42 +0900)
Change-Id: I79e3b1c283f9813efb48caffd7c5c30b8c2afc95
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_mlapi.cpp

index 0b620f5..b4d7a04 100644 (file)
@@ -129,9 +129,8 @@ namespace MLAPIImpl
 
                        if (access(model_str.c_str(), R_OK) ||
                                        access(model_paths[1].c_str(), R_OK)) {
-                               LOGE("model file path in [%s,%s], errno=%s", model_str.c_str(),
-                                                                                                  model_paths[1].c_str(),
-                                                                                                  strerror(errno));
+                               LOGE("model file path in [%s,%s]", model_str.c_str(),
+                                                                                                  model_paths[1].c_str());
                                return INFERENCE_ENGINE_ERROR_INVALID_PATH;
                        }
 
@@ -143,8 +142,7 @@ namespace MLAPIImpl
                        nnfw_type = ML_NNFW_TYPE_NNFW;
 
                        if (access(model_str.c_str(), R_OK)) {
-                               LOGE("model file path in [%s], errno=%s", model_str.c_str(),
-                                                                                                                 strerror(errno));
+                               LOGE("model file path in [%s]", model_str.c_str());
                                return INFERENCE_ENGINE_ERROR_INVALID_PATH;
                        }