提交 dfecc914 authored 作者: Anthony Minessale's avatar Anthony Minessale

remove check for va_list completely in sofia since i don't event think it happens ever

上级 3a645dee
...@@ -1717,16 +1717,9 @@ void launch_sofia_profile_thread(sofia_profile_t *profile) ...@@ -1717,16 +1717,9 @@ void launch_sofia_profile_thread(sofia_profile_t *profile)
static void logger(void *logarg, char const *fmt, va_list ap) static void logger(void *logarg, char const *fmt, va_list ap)
{ {
/* gcc 4.4 gets mad at us for testing if (ap) so let's try to work around it....*/
void *ap_ptr = (void *) (intptr_t) ap;
if (!fmt) return; if (!fmt) return;
if (ap_ptr) { switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt);
}
} }
static su_log_t *sofia_get_logger(const char *name) static su_log_t *sofia_get_logger(const char *name)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论