Fix incorrect log messages 63/218463/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 22 Nov 2019 11:02:08 +0000 (20:02 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 22 Nov 2019 11:02:08 +0000 (20:02 +0900)
Change-Id: Iea4b424e9a28a8fde1a923b8b92cd9071caa5de1

plugins/wakeup-manager/src/dependency_resolver.cpp

index b15eef8..793d38f 100644 (file)
@@ -156,7 +156,7 @@ int dependency_resolver_set_error_callback(mas_dependency_error_cb callback, voi
                                ret = func(callback, user_data);
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_SET_ERROR_CALLBACK, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to set error callback(%p, %p), ret(%d)", callback, user_data, ret);
@@ -181,7 +181,7 @@ int dependency_resolver_start_recording(void)
                                ret = func();
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_START_RECORDING, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to start recording, ret(%d)", ret);
@@ -206,7 +206,7 @@ int dependency_resolver_stop_recording(void)
                                ret = func();
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_STOP_RECORDING, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to stop recording, ret(%d)", ret);
@@ -232,7 +232,7 @@ int dependency_resolver_set_recording_session(unsigned int session)
                                ret = func(session);
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_SET_RECORDING_SESSION, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to set recording session, ret(%d)", ret);
@@ -257,7 +257,7 @@ int dependency_resolver_set_background_volume(double ratio)
                                ret = func(ratio);
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_SET_BACKGROUND_VOLUME, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to set background volume to %f, ret(%d)", ratio, ret);
@@ -282,7 +282,7 @@ int dependency_resolver_get_audio_format(int* rate, int* channel, int* audio_typ
                                ret = func(rate, channel, audio_type);
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_GET_AUDIO_FORMAT, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to get audio format, ret(%d)", ret);
@@ -307,7 +307,7 @@ int dependency_resolver_get_audio_source_type(char** type)
                                ret = func(type);
                        } catch (const std::exception& e) {
                                MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
-                                       MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+                                       MAS_DEPENDENCY_FUNC_GET_AUDIO_SOURCE_TYPE, e.what());
                        }
                        if (0 != ret) {
                                MAS_LOGE("[ERROR] Fail to get audio source type, ret(%d)", ret);