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:
Eric Katzfey
2022-10-27 06:58:05 -07:00
committed by GitHub
parent 5edbc2f80a
commit fa74ee3d5b
4 changed files with 30 additions and 51 deletions
+2 -2
View File
@@ -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;
}