From 6dc9533f4ce0743cd0834937513a8fd308e70f16 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Thu, 23 Feb 2017 20:24:52 +0900 Subject: Use macro for debug log Change-Id: I7edcefa0d77ac95fac8c3b4af222199c56f6ef59 --- src/mm_radio_priv_hal.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/mm_radio_priv_hal.c') 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 #include -#include #include #include @@ -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; } -- cgit v1.2.3