Fix typo 03/213703/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 10 Sep 2019 08:48:35 +0000 (17:48 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 10 Sep 2019 08:48:35 +0000 (17:48 +0900)
Change-Id: Iefb01e8d90133235a507af11af9695277bbaa07f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
client/sticker_data.c
client/sticker_dbus.c
provider/sticker_provider.c
server/stickerd_data_manager.c
sticker-parser/sticker-parser.c

index d7c1fb2..fc4d716 100644 (file)
@@ -46,14 +46,14 @@ static char* _make_absolute_path(const char *relative_path)
 
     ret = package_info_create(app_id, &package_info);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         ret = STICKER_ERROR_OPERATION_FAILED;
         goto cleanup;
     }
 
     ret = package_info_get_root_path(package_info, &app_path);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         ret = STICKER_ERROR_OPERATION_FAILED;
         goto cleanup;
     }
index 64434b4..a3e2377 100644 (file)
@@ -229,7 +229,7 @@ static void _handle_sticker_consumer_cb(GDBusConnection *connection,
             consumer_handle->data_foreach_by_keyword_cb(sticker_data, consumer_handle->data_foreach_by_keyword_cb_user_data);
         else
             LOGW("No registered callback function");
-    } else if (g_strcmp0(signal_name, "send_sticker_info_by_goup") == 0) {
+    } else if (g_strcmp0(signal_name, "send_sticker_info_by_group") == 0) {
         if (consumer_handle->data_foreach_by_group_cb != NULL)
             consumer_handle->data_foreach_by_group_cb(sticker_data, consumer_handle->data_foreach_by_group_cb_user_data);
         else
@@ -686,7 +686,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(ii)", sticker_data->sticker_info_id, sticker_data->type);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_type");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker type");
+            LOGE("failed to update sticker type");
     }
 
     if (sticker_data->uri && strcmp(sticker_data->uri, origin_data->uri) != 0) {
@@ -695,7 +695,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(isis)", sticker_data->sticker_info_id, sticker_data->app_id, sticker_data->type, sticker_data->uri);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_uri");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker uri");
+            LOGE("failed to update sticker uri");
     }
 
     if (sticker_data->thumbnail && strcmp(sticker_data->thumbnail, origin_data->thumbnail) != 0) {
@@ -704,7 +704,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->thumbnail);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_thumbnail");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker thumbnail");
+            LOGE("failed to update sticker thumbnail");
     }
 
     if (sticker_data->description && strcmp(sticker_data->description, origin_data->description) != 0) {
@@ -713,7 +713,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->description);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_description");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker description");
+            LOGE("failed to update sticker description");
     }
 
     if (sticker_data->group && strcmp(sticker_data->group, origin_data->group) != 0) {
@@ -722,7 +722,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->group);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_group");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker group");
+            LOGE("failed to update sticker group");
     }
 
     if (sticker_data->keyword) {
@@ -733,7 +733,7 @@ int sticker_dbus_update_sticker_info(GDBusConnection *gdbus_connection, sticker_
         body = g_variant_new("(ia(s))", sticker_data->sticker_info_id, keyword_builder);
         ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_keyword");
         if (ret != STICKER_CLIENT_ERROR_NONE)
-            LOGE("falied to update sticker keyword");
+            LOGE("failed to update sticker keyword");
     }
 
     _free_sticker_data(origin_data);
@@ -800,7 +800,7 @@ int sticker_dbus_get_group_list(GDBusConnection *gdbus_connection, GList **group
         g_variant_get(reply_body, "(a(s))", &iter);
 
         if (!iter) {
-            LOGD("falied to get iter");
+            LOGD("failed to get iter");
             return STICKER_CLIENT_ERROR_OPERATION_FAILED;
         }
 
@@ -845,7 +845,7 @@ int sticker_dbus_get_keyword_list(GDBusConnection *gdbus_connection, GList **key
         g_variant_get(reply_body, "(a(s))", &iter);
 
         if (!iter) {
-            LOGD("falied to get iter");
+            LOGD("failed to get iter");
             return STICKER_CLIENT_ERROR_OPERATION_FAILED;
         }
 
index 738f433..b8c82aa 100644 (file)
@@ -161,14 +161,14 @@ EXPORT_API int sticker_provider_insert_data_by_json_file(sticker_provider_h prov
     if (access(json_path, F_OK) != 0) {
         ret = package_info_create(app_id, &package_info);
         if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
-            LOGE("faild to create package_info. ret: %d", ret);
+            LOGE("failed to create package_info. ret: %d", ret);
             ret = STICKER_ERROR_OPERATION_FAILED;
             goto cleanup;
         }
 
         ret = package_info_get_root_path(package_info, &app_path);
         if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
-            LOGE("faild to create package_info. ret: %d", ret);
+            LOGE("failed to create package_info. ret: %d", ret);
             ret = STICKER_ERROR_OPERATION_FAILED;
             goto cleanup;
         }
index cb457d0..a3e235d 100644 (file)
@@ -279,14 +279,14 @@ static int _check_file_exist(const char *app_id, const char *path)
 
     ret = package_info_create(app_id, &package_info);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         ret = -1;
         goto cleanup;
     }
 
     ret = package_info_get_root_path(package_info, &app_path);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         ret = -1;
         goto cleanup;
     }
@@ -1056,7 +1056,7 @@ static int send_sticker_info_async(int record_id, sticker_info_db_type type, con
         cmd = "send_sticker_info_by_type";
         break;
         case STICKER_DB_STICKER_GROUP:
-        cmd = "send_sticker_info_by_goup";
+        cmd = "send_sticker_info_by_group";
         break;
         case STICKER_DB_STICKER_KEYWORD:
         cmd = "send_sticker_info_by_keyword";
index dc27241..5771e72 100644 (file)
@@ -626,13 +626,13 @@ int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgid, const char *appid, GList *
 
     ret = package_info_create(pkgid, &package_info);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         goto cleanup;
     }
 
     ret = package_info_get_root_path(package_info, &app_path);
     if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
-        LOGE("faild to create package_info. ret: %d", ret);
+        LOGE("failed to create package_info. ret: %d", ret);
         goto cleanup;
     }