From ec179194f717b3706a72a9e31f250922d9e10ad6 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 10 Sep 2019 17:48:35 +0900 Subject: [PATCH] Fix typo Change-Id: Iefb01e8d90133235a507af11af9695277bbaa07f Signed-off-by: Jihoon Kim --- client/sticker_data.c | 4 ++-- client/sticker_dbus.c | 18 +++++++++--------- provider/sticker_provider.c | 4 ++-- server/stickerd_data_manager.c | 6 +++--- sticker-parser/sticker-parser.c | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/client/sticker_data.c b/client/sticker_data.c index d7c1fb2..fc4d716 100644 --- a/client/sticker_data.c +++ b/client/sticker_data.c @@ -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; } diff --git a/client/sticker_dbus.c b/client/sticker_dbus.c index 64434b4..a3e2377 100644 --- a/client/sticker_dbus.c +++ b/client/sticker_dbus.c @@ -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; } diff --git a/provider/sticker_provider.c b/provider/sticker_provider.c index 738f433..b8c82aa 100644 --- a/provider/sticker_provider.c +++ b/provider/sticker_provider.c @@ -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; } diff --git a/server/stickerd_data_manager.c b/server/stickerd_data_manager.c index cb457d0..a3e235d 100644 --- a/server/stickerd_data_manager.c +++ b/server/stickerd_data_manager.c @@ -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"; diff --git a/sticker-parser/sticker-parser.c b/sticker-parser/sticker-parser.c index dc27241..5771e72 100644 --- a/sticker-parser/sticker-parser.c +++ b/sticker-parser/sticker-parser.c @@ -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; } -- 2.7.4