aboutsummaryrefslogtreecommitdiff
path: root/pw_trace_tokenized/example/basic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pw_trace_tokenized/example/basic.cc')
-rw-r--r--pw_trace_tokenized/example/basic.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw_trace_tokenized/example/basic.cc b/pw_trace_tokenized/example/basic.cc
index a3894e331..c0edae146 100644
--- a/pw_trace_tokenized/example/basic.cc
+++ b/pw_trace_tokenized/example/basic.cc
@@ -30,6 +30,7 @@
#include "pw_log/log.h"
#include "pw_trace/example/sample_app.h"
#include "pw_trace_tokenized/example/trace_to_file.h"
+#include "pw_trace_tokenized/trace_callback.h"
int main(int argc, char** argv) { // Take filename as arg
if (argc != 2) {
@@ -41,7 +42,7 @@ int main(int argc, char** argv) { // Take filename as arg
PW_TRACE_SET_ENABLED(true);
// Dump trace data to the file passed in.
- pw::trace::TraceToFile trace_to_file(argv[1]);
+ pw::trace::TraceToFile trace_to_file(pw::trace::GetCallbacks(), argv[1]);
PW_LOG_INFO("Running basic trace example...\n");
RunTraceSampleApp();