aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-05-21 14:19:39 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-05-21 14:19:39 +0200
commitaa2b125a67c4b4d64b8c4b5bed662cdac1e5f1c6 (patch)
tree4e9abca77c265037ccbef99ca06cea3ee02aabab /src/systemcmds
parent9024d76e7c09bdc4296aa991c40b7048426f44eb (diff)
downloadpx4-firmware-aa2b125a67c4b4d64b8c4b5bed662cdac1e5f1c6.tar.gz
px4-firmware-aa2b125a67c4b4d64b8c4b5bed662cdac1e5f1c6.tar.bz2
px4-firmware-aa2b125a67c4b4d64b8c4b5bed662cdac1e5f1c6.zip
perf: Allow printing to arbritrary fds
Diffstat (limited to 'src/systemcmds')
-rw-r--r--src/systemcmds/perf/perf.c2
-rw-r--r--src/systemcmds/tests/tests_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/perf/perf.c b/src/systemcmds/perf/perf.c
index b69ea597b..b08a2e3b7 100644
--- a/src/systemcmds/perf/perf.c
+++ b/src/systemcmds/perf/perf.c
@@ -73,7 +73,7 @@ int perf_main(int argc, char *argv[])
return -1;
}
- perf_print_all();
+ perf_print_all(0 /* stdout */);
fflush(stdout);
return 0;
}
diff --git a/src/systemcmds/tests/tests_main.c b/src/systemcmds/tests/tests_main.c
index fe22f6177..e3f26924f 100644
--- a/src/systemcmds/tests/tests_main.c
+++ b/src/systemcmds/tests/tests_main.c
@@ -235,7 +235,7 @@ test_perf(int argc, char *argv[])
printf("perf: expect count of 1\n");
perf_print_counter(ec);
printf("perf: expect at least two counters\n");
- perf_print_all();
+ perf_print_all(0);
perf_free(cc);
perf_free(ec);