diff options
Diffstat (limited to 'src/include/mm_radio_utils.h')
-rw-r--r-- | src/include/mm_radio_utils.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/mm_radio_utils.h b/src/include/mm_radio_utils.h index 3f70f29..32bc957 100644 --- a/src/include/mm_radio_utils.h +++ b/src/include/mm_radio_utils.h @@ -61,7 +61,7 @@ do { \ #define MMRADIO_CHECK_INSTANCE(x_radio) \ do { \ if (!x_radio) { \ - debug_error("radio instance is NULL\n"); \ + MMRADIO_LOG_ERROR("radio instance is NULL\n"); \ return MM_ERROR_RADIO_NOT_INITIALIZED; \ } \ } while (0) @@ -69,7 +69,7 @@ do { \ #define MMRADIO_CHECK_ARG(x_radio) \ do { \ if (!x_radio) { \ - debug_error("argument is NULL\n"); \ + MMRADIO_LOG_ERROR("argument is NULL\n"); \ return MM_ERROR_COMMON_INVALID_ARGUMENT; \ } \ } while (0) @@ -78,7 +78,7 @@ do { \ #define MMRADIO_CHECK_INSTANCE_RETURN_VOID(x_radio) \ do { \ if (!x_radio) { \ - debug_error("radio instance is NULL\n"); \ + MMRADIO_LOG_ERROR("radio instance is NULL\n"); \ return; \ } \ } while (0) @@ -86,7 +86,7 @@ do { \ #define MMRADIO_CHECK_DEVICE_STATE(x_radio) \ do { \ if (x_radio->radio_fd < 0) { \ - debug_error("not available radio device\n"); \ + MMRADIO_LOG_ERROR("not available radio device\n"); \ return MM_ERROR_RADIO_NOT_INITIALIZED; \ } \ } while (0) @@ -101,21 +101,21 @@ do { \ /* message posting */ #define MMRADIO_POST_MSG(x_radio, x_msgtype, x_msg_param) \ do { \ - debug_log("posting %s to application\n", #x_msgtype); \ + MMRADIO_LOG_DEBUG("posting %s to application\n", #x_msgtype); \ __mmradio_post_message(x_radio, x_msgtype, x_msg_param); \ } while (0) /* setting radio state */ #define MMRADIO_SET_STATE(x_radio, x_state) \ do { \ - debug_log("setting mm-radio state to %d\n", x_state); \ + MMRADIO_LOG_DEBUG("setting mm-radio state to %d\n", x_state); \ __mmradio_set_state(x_radio, x_state); \ } while (0) /* state */ #define MMRADIO_CHECK_STATE_RETURN_IF_FAIL(x_radio, x_command) \ do { \ - debug_log("checking radio state before doing %s\n", #x_command); \ + MMRADIO_LOG_DEBUG("checking radio state before doing %s\n", #x_command); \ switch (__mmradio_check_state(x_radio, x_command)) { \ case MM_ERROR_RADIO_INVALID_STATE: \ return MM_ERROR_RADIO_INVALID_STATE; \ @@ -132,7 +132,7 @@ do { \ #define MMRADIO_CHECK_RETURN_IF_FAIL(x_ret, x_msg) \ do { \ if (x_ret < 0) { \ - debug_error("%s error\n", x_msg); \ + MMRADIO_LOG_ERROR("%s error\n", x_msg); \ return x_ret; \ } \ } while (0); |