Merge pull request #3660 from nfedera/fix_profiler_print_format_specifier

fix format specifier in profiler_print
This commit is contained in:
Martin Fleisz 2016-12-19 10:50:09 +01:00 committed by GitHub
commit 59a3e43979

View File

@ -78,7 +78,7 @@ void profiler_print(PROFILER* profiler)
{ {
double elapsed_sec = stopwatch_get_elapsed_time_in_seconds(profiler->stopwatch); double elapsed_sec = stopwatch_get_elapsed_time_in_seconds(profiler->stopwatch);
double avg_sec = elapsed_sec / (double) profiler->stopwatch->count; double avg_sec = elapsed_sec / (double) profiler->stopwatch->count;
WLog_INFO(TAG, "| %-30.30s| %10du | %9f | %9f |", WLog_INFO(TAG, "| %-30.30s| %10"PRIu32" | %9f | %9f |",
profiler->name, profiler->stopwatch->count, elapsed_sec, avg_sec); profiler->name, profiler->stopwatch->count, elapsed_sec, avg_sec);
} }