From 8bf30fb24050dcad2be6d13c32aff2c17bae6139 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 22 Jun 2023 09:42:17 -0400 Subject: [PATCH] doc: fix passing non-event messages in distill examples 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/10444 Tested-by: jenkins Reviewed-by: Philippe Proulx --- doc/api/libbabeltrace2/examples/distill.c | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/api/libbabeltrace2/examples/distill.c b/doc/api/libbabeltrace2/examples/distill.c index b52650f9..bf92f65d 100644 --- a/doc/api/libbabeltrace2/examples/distill.c +++ b/doc/api/libbabeltrace2/examples/distill.c @@ -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; } -- 2.34.1