doc: fix passing non-event messages in distill examples
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 22 Jun 2023 13:42:17 +0000 (09:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 Nov 2023 04:32:31 +0000 (00:32 -0400)
The distill filter example means to let non-event messages go through,
but it actually drops them.  Fix it so it actually lets them through.

Verified by sending the output of the filter to `sink.text.details`.
Before the patch, there is no stream beginning message.  After the
patch, there is.

Change-Id: I2414a37ca7fc5fa6e5ed0fe179ee39cadf261f31
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10444
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
doc/api/libbabeltrace2/examples/distill.c

index b52650f9e7a2ab043645f2a71bcdfe027fe6b040..bf92f65de60a59b9a9f80c983b80e660438434b6 100644 (file)
@@ -150,7 +150,6 @@ bool message_passes(struct distill_message_iterator *distill_iter,
 
     /* Move as is if it's not an event message */
     if (bt_message_get_type(message) != BT_MESSAGE_TYPE_EVENT) {
-        passes = false;
         goto end;
     }
 
This page took 0.024373 seconds and 4 git commands to generate.