From dd2833adc7a8098c7d94cd2e25301d698f5df38b Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Tue, 28 Aug 2018 15:30:27 +0900 Subject: [PATCH] Fix spelling errata Change-Id: I342d264e2d8372fe1c3ec3fcc507d694603b5cf3 Signed-off-by: sooyeon.kim --- client/stt.c | 2 +- client/stt_dbus.c | 2 +- common/stt_config_mgr.c | 4 ++-- common/stt_config_parser.c | 4 ++-- engine-parser/src/stt-engine-parser.c | 2 +- include/stt.h | 2 +- include/stt_file.h | 2 +- server/sttd_server.c | 2 +- test/test_main.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/stt.c b/client/stt.c index a3a4763..649a71a 100644 --- a/client/stt.c +++ b/client/stt.c @@ -321,7 +321,7 @@ void __stt_config_engine_changed_cb(const char* engine_id, const char* setting, if (STT_STATE_RECORDING == client->current_state || STT_STATE_PROCESSING == client->current_state) { ret = stt_cancel(stt); if (0 != ret) { - SLOG(LOG_DEBUG, TAG_STTC, "[DEBUG] STT client canceling..."); + SLOG(LOG_DEBUG, TAG_STTC, "[DEBUG] STT client cancelling..."); } ecore_idler_add(__reconnect_by_engine_changed, (void*)stt); diff --git a/client/stt_dbus.c b/client/stt_dbus.c index 5d52557..424c407 100644 --- a/client/stt_dbus.c +++ b/client/stt_dbus.c @@ -674,7 +674,7 @@ int stt_dbus_open_connection() DBusError err; - /* initialise the error value */ + /* initialize the error value */ dbus_error_init(&err); /* connect to the DBUS system bus, and check for errors */ diff --git a/common/stt_config_mgr.c b/common/stt_config_mgr.c index 4205bad..2314cbb 100644 --- a/common/stt_config_mgr.c +++ b/common/stt_config_mgr.c @@ -1683,7 +1683,7 @@ int stt_config_mgr_reset_time_info() int stt_config_mgr_add_time_info(int index, int event, const char* text, long start_time, long end_time) { if (NULL == text) { - SLOG(LOG_ERROR, stt_tag(), "Invalid paramter : text is NULL"); + SLOG(LOG_ERROR, stt_tag(), "Invalid parameter : text is NULL"); return -1; } @@ -1714,7 +1714,7 @@ int stt_config_mgr_add_time_info(int index, int event, const char* text, long st int stt_config_mgr_foreach_time_info(stt_config_result_time_cb callback, void* user_data) { if (NULL == callback) { - SLOG(LOG_ERROR, stt_tag(), "[ERROR] Input paramter is NULL : callback function"); //LCOV_EXCL_LINE + SLOG(LOG_ERROR, stt_tag(), "[ERROR] Input parameter is NULL : callback function"); //LCOV_EXCL_LINE return STT_CONFIG_ERROR_INVALID_PARAMETER; } diff --git a/common/stt_config_parser.c b/common/stt_config_parser.c index 1c3180d..8b45fc3 100644 --- a/common/stt_config_parser.c +++ b/common/stt_config_parser.c @@ -435,7 +435,7 @@ int stt_parser_load_config(stt_config_s** config_info) xmlFree(key); } else { - SLOG(LOG_ERROR, stt_tag(), "[ERROR] auto langauge is NULL"); //LCOV_EXCL_LINE + SLOG(LOG_ERROR, stt_tag(), "[ERROR] auto language is NULL"); //LCOV_EXCL_LINE } } else if (0 == xmlStrcmp(cur->name, (const xmlChar *)STT_TAG_CONFIG_LANGUAGE)) { key = xmlNodeGetContent(cur); @@ -1005,7 +1005,7 @@ void __stt_parser_time_info_free(void* data) int stt_parser_get_time_info(GSList** time_list) { if (NULL == time_list) { - SLOG(LOG_ERROR, stt_tag(), "Invalid paramter : text is NULL"); //LCOV_EXCL_LINE + SLOG(LOG_ERROR, stt_tag(), "Invalid parameter : text is NULL"); //LCOV_EXCL_LINE return -1; } diff --git a/engine-parser/src/stt-engine-parser.c b/engine-parser/src/stt-engine-parser.c index 0362e55..f062540 100644 --- a/engine-parser/src/stt-engine-parser.c +++ b/engine-parser/src/stt-engine-parser.c @@ -304,7 +304,7 @@ static int __remove_engine_info_xml(const char *pkgid, gchar *ut, uid_t uid) if (0 == access(path, F_OK)) { LOGD("Remove engine info xml(%s)", path); if (0 != remove(path)) { - LOGE("[ERROR] Fail to emove engine info xml(%s)", path); + LOGE("[ERROR] Fail to remove engine info xml(%s)", path); } } diff --git a/include/stt.h b/include/stt.h index eabc74b..47f9e68 100755 --- a/include/stt.h +++ b/include/stt.h @@ -220,7 +220,7 @@ typedef bool(*stt_supported_engine_cb)(stt_h stt, const char* engine_id, const c /** * @brief Called when STT gets the recognition result from the engine. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * @remarks After stt_stop() is called, silence is detected from recording, or partial result is occured, this function is called. + * @remarks After stt_stop() is called, silence is detected from recording, or partial result is occurred, this function is called. * @param[in] stt The STT handle * @param[in] event The result event * @param[in] data Result texts diff --git a/include/stt_file.h b/include/stt_file.h index 71c5df7..11bbc74 100644 --- a/include/stt_file.h +++ b/include/stt_file.h @@ -106,7 +106,7 @@ typedef bool(*stt_file_supported_engine_cb)(const char* engine_id, const char* e /** * @brief Called when STT gets the recognition result from engine. * -* @remark After stt_file_start() is called and recognition result is occured, this function is called. +* @remark After stt_file_start() is called and recognition result is occurred, this function is called. * * @param[in] event The result event * @param[in] data Result texts diff --git a/server/sttd_server.c b/server/sttd_server.c index 38b7a7f..77f957f 100644 --- a/server/sttd_server.c +++ b/server/sttd_server.c @@ -356,7 +356,7 @@ int __server_speech_status_callback(stte_speech_status_e status, void *user_para ecore_main_loop_thread_safe_call_async(__stop_by_silence, NULL); } } else { - SLOG(LOG_WARN, TAG_STTD, "[Server WARNING] Current recogntion uid is not valid "); + SLOG(LOG_WARN, TAG_STTD, "[Server WARNING] Current recognition uid is not valid "); } SLOG(LOG_DEBUG, TAG_STTD, "====="); diff --git a/test/test_main.c b/test/test_main.c index eafee9b..804eef1 100644 --- a/test/test_main.c +++ b/test/test_main.c @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) return 0; } - SLOG(LOG_DEBUG, TAG_STT_TEST, "Get supported langauge"); + SLOG(LOG_DEBUG, TAG_STT_TEST, "Get supported language"); ret = stt_file_foreach_supported_languages(__stt_file_supported_language_cb, NULL); if (STT_FILE_ERROR_NONE != ret) { SLOG(LOG_ERROR, TAG_STT_TEST, "Fail to get supported language"); -- 2.7.4