]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FreeSWITCH: Use SWITCH_TIME_T_FMT to fix format string error in send_heartbeat().
authorStefan Knoblich <stkn@openisdn.net>
Thu, 12 Jul 2012 01:25:12 +0000 (03:25 +0200)
committerStefan Knoblich <stkn@openisdn.net>
Thu, 12 Jul 2012 01:25:12 +0000 (03:25 +0200)
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
src/switch_core.c

index 3be5f0d818dd5de6a71c53a7e160f00481f9f476..43b13b48c4dd5a87bd911a452ffd42808652a26d 100644 (file)
@@ -83,7 +83,7 @@ static void send_heartbeat(void)
                                                                duration.ms, duration.ms == 1 ? "" : "s", duration.mms, duration.mms == 1 ? "" : "s");
 
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "FreeSWITCH-Version", SWITCH_VERSION_FULL);
-               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Uptime-msec", "%lu", switch_core_uptime() / 1000);
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Uptime-msec", "%"SWITCH_TIME_T_FMT, switch_core_uptime() / 1000);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Count", "%u", switch_core_session_count());
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Max-Sessions", "%u", switch_core_session_limit(0));
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec", "%u", runtime.sps);