Fix format string for actual type of apr_time_t

This was causing the build to fail if mod_sonar was configured to
build.
This commit is contained in:
Travis Cross 2012-09-20 07:03:30 +00:00
parent 1dd2e0f6b0
commit eca14d4601
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ switch_bool_t sonar_ping_callback(switch_core_session_t *session, const char *ap
end = switch_time_now(); end = switch_time_now();
diff = end - start; diff = end - start;
start = 0; 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; return SWITCH_TRUE;
} }