提交 eca14d46 authored 作者: Travis Cross's avatar Travis Cross

Fix format string for actual type of apr_time_t

This was causing the build to fail if mod_sonar was configured to
build.
上级 1dd2e0f6
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论