Fix typo 06/248206/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 24 Nov 2020 00:34:28 +0000 (09:34 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 24 Nov 2020 00:34:28 +0000 (09:34 +0900)
Change-Id: I09108ea573079770ca7a8a43944d96aefe82ddb5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/metadata_extractor_private.h
src/metadata_extractor.c

index e643ff0..7ad711a 100644 (file)
@@ -54,7 +54,7 @@ extern "C" {
                LOGD("<Leave>");     \
        } while (0)
 
-#define metadata_extractor_sucure_info(fmt, arg...) do { \
+#define metadata_extractor_secure_info(fmt, arg...) do { \
                SECURE_LOGI(""fmt"", ##arg);     \
        } while (0)
 
index a5e9ed5..c2eeb6a 100644 (file)
@@ -464,13 +464,13 @@ int metadata_extractor_set_path(metadata_extractor_h metadata, const char *path)
        metadata_extractor_retvm_if((_metadata == NULL) || (path == NULL), METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER, "Invalid parameter");
 
        /*check file path.. */
-       if (g_file_test(path, G_FILE_TEST_IS_REGULAR)) {
-               metadata_extractor_sucure_info("path[%s] is exists.", path);
-       } else {
-               metadata_extractor_sucure_info("path[%s] is not exists.", path);
+       if (!g_file_test(path, G_FILE_TEST_IS_REGULAR)) {
+               metadata_extractor_secure_info("path[%s] is not exists.", path);
                return METADATA_EXTRACTOR_ERROR_FILE_EXISTS;
        }
 
+       metadata_extractor_secure_info("path [%s]", path);
+
        if ((_metadata->path != NULL) || (_metadata->buffer != NULL)) {
                __metadata_extractor_destroy_handle(_metadata);
                SAFE_FREE(_metadata->path);