mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 01:43:34 +08:00
perf: fixed mixup of stdout/stdin
This commit is contained in:
committed by
Lorenz Meier
parent
59ee9ea1ae
commit
43235a8cff
@@ -70,7 +70,7 @@ int perf_main(int argc, char *argv[])
|
||||
return 0;
|
||||
|
||||
} else if (strcmp(argv[1], "latency") == 0) {
|
||||
perf_print_latency(0 /* stdout */);
|
||||
perf_print_latency(1 /* stdout */);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ int perf_main(int argc, char *argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
perf_print_all(0 /* stdout */);
|
||||
perf_print_all(1 /* stdout */);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user