From af6308971dd4cbf2b0111b615f62a78d5e154cab Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 23 Jun 2020 12:39:00 +0100 Subject: [PATCH 1/2] examples: Drop sysprof_clock_init() call from example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s implicitly called when setting up the `SysprofCaptureWriter`. Signed-off-by: Philip Withnall --- examples/app.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/app.c b/examples/app.c index bb10ba6f..acf64443 100644 --- a/examples/app.c +++ b/examples/app.c @@ -23,8 +23,6 @@ main (int argc, { SysprofCaptureWriter *writer; - sysprof_clock_init (); - /* Ignore SIGPIPE because we might get a pipe from the environment and we * don't want to trap if write() is used on it. */ From 2c216fcff90d321ea58738871ece73d9906ae822 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 23 Jun 2020 12:39:31 +0100 Subject: [PATCH 2/2] examples: Fix a typo in a string Signed-off-by: Philip Withnall --- examples/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app.c b/examples/app.c index acf64443..d48c5554 100644 --- a/examples/app.c +++ b/examples/app.c @@ -80,7 +80,7 @@ do_some_work (SysprofCaptureWriter *writer) real_duration, /* duration in nsec */ "Example", /* Group name, 23 chars+\0 */ "Sleep", /* Name, 39 chars+\0 */ - "Anscillary message data"); /* UTF-8 Message data, limited to + "Ancillary message data"); /* UTF-8 Message data, limited to 64kb-frame size. */ } }