On Wed, Oct 23, 2024 at 06:53:48PM +0200, Andrew Jones wrote: > A nice pattern to use in order to try and maintain parsable reports, > but also output unexpected values, is > > if (!report(value == expected_value, "my test")) { > report_info("failure due to unexpected value (received %d, expected %d)", > value, expected_value); > } > > Signed-off-by: Andrew Jones <andrew.jones@xxxxxxxxx> > --- > lib/libcflat.h | 6 +++--- > lib/report.c | 28 +++++++++++++++++++++------- > 2 files changed, 24 insertions(+), 10 deletions(-) Merged. Thanks, drew