diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2017-02-23 20:24:52 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2017-02-23 20:25:10 +0900 |
commit | 6dc9533f4ce0743cd0834937513a8fd308e70f16 (patch) | |
tree | 2a502c1df5dd38b93abffec66c269a5894dba023 /src/mm_radio_priv_hal.c | |
parent | b1b635792c09e8fa3f758a8bc9b85d5d49f2116d (diff) | |
download | libmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.tar.gz libmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.tar.bz2 libmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.zip |
Use macro for debug logsubmit/tizen_3.0/20170224.035858accepted/tizen/3.0/wearable/20170227.090633accepted/tizen/3.0/mobile/20170227.090406accepted/tizen/3.0/ivi/20170227.090706accepted/tizen/3.0/common/20170227.135820accepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: I7edcefa0d77ac95fac8c3b4af222199c56f6ef59
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rw-r--r-- | src/mm_radio_priv_hal.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mm_radio_priv_hal.c b/src/mm_radio_priv_hal.c index e9752ae..0ccd884 100644 --- a/src/mm_radio_priv_hal.c +++ b/src/mm_radio_priv_hal.c @@ -34,7 +34,6 @@ #include <errno.h> #include <mm_error.h> -#include <mm_debug.h> #include <mm_message.h> #include <mm_sound.h> @@ -859,7 +858,7 @@ int _mm_radio_get_signal_strength(mm_radio_t *radio, int *value) if (ret == MM_ERROR_NOT_SUPPORT_API) { MMRADIO_LOG_WARNING("radio_hal_unmute is not supported"); } else if (ret != MM_ERROR_NONE) { - debug_error("radio_hal_get_signal_strength error"); + MMRADIO_LOG_ERROR("radio_hal_get_signal_strength error"); *value = 0; MMRADIO_LOG_FLEAVE(); return ret; @@ -1129,7 +1128,7 @@ static bool __mmradio_post_message(mm_radio_t *radio, enum MMMessageType msgtype MMRADIO_LOG_FENTER(); if (!radio->msg_cb) { - debug_warning("failed to post a message"); + MMRADIO_LOG_WARNING("failed to post a message"); return false; } @@ -1263,13 +1262,13 @@ static int __mmradio_check_state(mm_radio_t *radio, MMRadioCommand command) return MM_ERROR_NONE; - INVALID_STATE: - debug_warning("invalid state. current : %d command : %d", radio_state, command); +INVALID_STATE: + MMRADIO_LOG_WARNING("invalid state. current : %d command : %d", radio_state, command); MMRADIO_LOG_FLEAVE(); return MM_ERROR_RADIO_INVALID_STATE; - NO_OP: - debug_warning("mm-radio is in the desired state(%d). doing noting", radio_state); +NO_OP: + MMRADIO_LOG_WARNING("mm-radio is in the desired state(%d). doing noting", radio_state); MMRADIO_LOG_FLEAVE(); return MM_ERROR_RADIO_NO_OP; @@ -1283,12 +1282,12 @@ static bool __mmradio_set_state(mm_radio_t *radio, int new_state) MMRADIO_LOG_FENTER(); if (!radio) { - debug_warning("calling set_state with invalid radio handle"); + MMRADIO_LOG_WARNING("calling set_state with invalid radio handle"); return false; } if (radio->current_state == new_state && radio->pending_state == 0) { - debug_warning("we are in same state"); + MMRADIO_LOG_WARNING("we are in same state"); return true; } |