LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
+#define LOG_ERROR_IF_REACHED(fmt, arg...) \
+do { \
+ LOGE(FONT_COLOR_RED"should not be reached here. "fmt""FONT_COLOR_RESET, ##arg); \
+} while (0)
+
#define LOG_DEBUG_ENTER() \
do { \
LOGD(FONT_COLOR_PURPLE"<Enter>"FONT_COLOR_RESET); \
break;
default:
- LOG_ERROR("should not be reached here");
+ LOG_ERROR_IF_REACHED("type(%d)", type);
break;
}
break;
default:
- LOG_ERROR("should not be reached here");
+ LOG_ERROR_IF_REACHED("type(%d)", type);
break;
}
return __build_audiotestsrc(source->bin, source->type, src_pad);
default:
- LOG_ERROR("should not be reached here");
+ LOG_ERROR_IF_REACHED("type(%d)", source->type);
return WEBRTC_ERROR_INVALID_PARAMETER;
}