]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix format string for actual type of apr_time_t
authorTravis Cross <tc@traviscross.com>
Thu, 20 Sep 2012 07:03:30 +0000 (07:03 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 20 Sep 2012 07:04:02 +0000 (07:04 +0000)
This was causing the build to fail if mod_sonar was configured to
build.

src/mod/applications/mod_sonar/mod_sonar.c

index 5cdcd351888789d834eda0cb697398d54b6b5d91..8f6e424eb36806f44e6e08cf77fca7c84ef675d0 100644 (file)
@@ -61,7 +61,7 @@ switch_bool_t sonar_ping_callback(switch_core_session_t *session, const char *ap
        end = switch_time_now();
        diff = end - start;
        start = 0;
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Sonar ping took %lu milliseconds\n", diff / 1000);    
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Sonar ping took %ld milliseconds\n", (long)diff / 1000);
        
        return SWITCH_TRUE;
 }