]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix compile error
authorMichael Jerris <mike@jerris.com>
Wed, 13 Jan 2010 22:13:11 +0000 (22:13 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 13 Jan 2010 22:13:11 +0000 (22:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16292 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_time.c

index ab2f03e71115484bfa692a00ecfd5f3ca8a06a68..9cdef46005cd946a7e532cd78350d05d320498e7 100644 (file)
@@ -195,7 +195,7 @@ static void calibrate_clock(void)
 
        for (x = 0; x < 500; x++) {
                avg = average_time(val, 100);
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Test: %ld Average: %ld Step: %d\n", val, avg, step);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Test: %ld Average: %ld Step: %d\n", (long)val, (long)avg, step);
 
                diff = abs((int)(want - avg));
                if (diff > 1500) {