Skip to content

Commit eca14d4

Browse files
committed
Fix format string for actual type of apr_time_t
This was causing the build to fail if mod_sonar was configured to build.
1 parent 1dd2e0f commit eca14d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod/applications/mod_sonar/mod_sonar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ switch_bool_t sonar_ping_callback(switch_core_session_t *session, const char *ap
6161
end = switch_time_now();
6262
diff = end - start;
6363
start = 0;
64-
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Sonar ping took %lu milliseconds\n", diff / 1000);
64+
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Sonar ping took %ld milliseconds\n", (long)diff / 1000);
6565

6666
return SWITCH_TRUE;
6767
}

0 commit comments

Comments
 (0)