]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] fix log format string.
authorDragos Oancea <dragos@signalwire.com>
Fri, 12 Jun 2020 17:26:58 +0000 (17:26 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:01:14 +0000 (22:01 +0300)
src/switch_log.c

index c7a18c1a52fcfd0cc689b04ff27bba3e13483912..74a5713635b40b309b2f146a35e9961c2ad05458 100644 (file)
@@ -611,7 +611,7 @@ SWITCH_DECLARE(void) switch_log_meta_vprintf(switch_text_channel_t channel, cons
                switch_time_exp_t tm;
 
                switch_time_exp_lt(&tm, now);
-               switch_snprintf(date, sizeof(date), "%0.4d-%0.2d-%0.2d %0.2d:%0.2d:%0.2d.%0.6d %0.2f%%",
+               switch_snprintf(date, sizeof(date), "%0.4d-%0.2d-%0.2d %0.2d:%0.2d:%0.2d.%0.6d %0.2f%%%%",
                                                tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_usec, switch_core_idle_cpu());
 
                //switch_strftime_nocheck(date, &retsize, sizeof(date), "%Y-%m-%d %T", &tm);