From 59a3df256314646e90cc466244612d8656b2c768 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Fri, 24 Aug 2012 00:50:19 +0200 Subject: [PATCH] FreeSWITCH: Fix format string error in witch_core_session_thread_pool_worker(). Fixes: cc1: warnings being treated as errors src/switch_core_session.c: In function 'switch_core_session_thread_pool_worker': src/switch_core_session.c:1478: warning: format '%ld' expects type 'long int', but argument 9 has type 'switch_size_t' src/switch_core_session.c:1483: warning: format '%ld' expects type 'long int', but argument 9 has type 'switch_size_t' gmake[2]: *** [libfreeswitch_la-switch_core_session.lo] Error 1 Signed-off-by: Stefan Knoblich --- src/switch_core_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index ad614ef94a..61d82169b3 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -1474,12 +1474,12 @@ static void *SWITCH_THREAD_FUNC switch_core_session_thread_pool_worker(switch_th session_manager.busy++; switch_mutex_unlock(session_manager.mutex); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Worker Thread %ld Processing session %ld %s\n", + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Worker Thread %ld Processing session %"SWITCH_SIZE_T_FMT" %s\n", (long) thread, session->id, switch_core_session_get_name(session)); switch_core_session_thread(thread, (void *) session); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Worker Thread %ld Done Processing session %ld %s\n", + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Worker Thread %ld Done Processing session %"SWITCH_SIZE_T_FMT" %s\n", (long) thread, session->id, switch_core_session_get_name(session)); switch_mutex_lock(session_manager.mutex);