fix perf counter: use dprintf instead of printf

This commit is contained in:
Beat Küng
2018-08-06 08:13:12 +02:00
committed by Lorenz Meier
parent b306935de0
commit d480d24a4c

View File

@@ -608,7 +608,7 @@ perf_print_latency(int fd)
dprintf(fd, "bucket [us] : events\n");
for (int i = 0; i < latency_bucket_count; i++) {
printf(" %4i : %li\n", latency_buckets[i], (long int)latency_counters[i]);
dprintf(fd, " %4i : %li\n", latency_buckets[i], (long int)latency_counters[i]);
}
// print the overflow bucket value