mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 11:27:35 +08:00
perf: removed dprintf from perf library
* Removed dprintf from perf library since it is only ever used with fd=1 (STDOUT) so moved to PX4_INFO_RAW instead. This helps with some platforms (e.g. Qurt) which have some Posix support but not full Posix support.
This commit is contained in:
@@ -60,7 +60,7 @@ extern "C" __EXPORT int perf_main(int argc, char *argv[])
|
||||
return 0;
|
||||
|
||||
} else if (strcmp(argv[1], "latency") == 0) {
|
||||
perf_print_latency(1 /* stdout */);
|
||||
perf_print_latency();
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ extern "C" __EXPORT int perf_main(int argc, char *argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
perf_print_all(1 /* stdout */);
|
||||
perf_print_all();
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user