]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pad digit len in micro time log entries
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 15:22:54 +0000 (15:22 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 15:22:54 +0000 (15:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14735 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_log.c

index 4df3ede2bf2fcde4bc6693096bd1300b8c3d4f88..60175026e8d1423688ed7ad9c1c6d0c856577c6c 100644 (file)
@@ -354,7 +354,7 @@ SWITCH_DECLARE(void) switch_log_vprintf(switch_text_channel_t channel, const cha
                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.%d", 
+               switch_snprintf(date, sizeof(date), "%0.4d-%0.2d-%0.2d %0.2d:%0.2d:%0.2d.%0.6d", 
                                                tm.tm_year + 1900, tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_usec);
 
                //switch_strftime_nocheck(date, &retsize, sizeof(date), "%Y-%m-%d %T", &tm);