From c619db0f4e0e49904ffa97134be7add41abcdfc1 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 30 Nov 2009 12:20:55 +0000 Subject: [PATCH] test build of this on openwrt please git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15716 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 5c5c31c312..be40f13a04 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1302,9 +1302,11 @@ void launch_sofia_profile_thread(sofia_profile_t *profile) static void logger(void *logarg, char const *fmt, va_list ap) { - if (fmt && ap) { + if (!fmt) return; + + if (ap) { switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap); - } else if (fmt && !ap) { + } else { switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt); } }