From: Simon Marchi Date: Fri, 8 Nov 2019 19:03:56 +0000 (-0500) Subject: lib: append error in simple_sink_consume only if error status X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=21559c8e6692c8afb1aab0b161bdda380a2bb19d;hp=21559c8e6692c8afb1aab0b161bdda380a2bb19d;p=babeltrace.git lib: append error in simple_sink_consume only if error status If the consume_func returns _AGAIN, we will append an error cause. That is wrong because _AGAIN is not an error cause. Check for negative status values instead of just != OK. Change-Id: Ibc03a1e9eb25de5ec39af5148c8e235498c57b64 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2358 Tested-by: jenkins Reviewed-by: Philippe Proulx ---