summaryrefslogtreecommitdiff
path: root/src/mm_radio_priv_hal.c
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2017-02-23 20:24:52 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2017-02-23 20:25:10 +0900
commit6dc9533f4ce0743cd0834937513a8fd308e70f16 (patch)
tree2a502c1df5dd38b93abffec66c269a5894dba023 /src/mm_radio_priv_hal.c
parentb1b635792c09e8fa3f758a8bc9b85d5d49f2116d (diff)
downloadlibmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.tar.gz
libmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.tar.bz2
libmm-radio-6dc9533f4ce0743cd0834937513a8fd308e70f16.zip
Change-Id: I7edcefa0d77ac95fac8c3b4af222199c56f6ef59
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rw-r--r--src/mm_radio_priv_hal.c17
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;
}