From 39756a2d8043287d1378563690fca78d3ca3b0f9 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 18 Feb 2019 18:14:27 -0500 Subject: [PATCH] assert-pre-internal.h: append "error is" to first message The previous message, "Library precondition not satisfied", was misleading because the following message does not indicate the precondition, but how the precondition was not satisfied. Making it "Library precondition not satisfied; error is:" here to make it clear that the following message indicates what the error is. Signed-off-by: Philippe Proulx --- include/babeltrace/assert-pre-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/babeltrace/assert-pre-internal.h b/include/babeltrace/assert-pre-internal.h index 3cb08b4ca..e1a57dfe5 100644 --- a/include/babeltrace/assert-pre-internal.h +++ b/include/babeltrace/assert-pre-internal.h @@ -58,7 +58,7 @@ # define BT_ASSERT_PRE(_cond, _fmt, ...) \ do { \ if (!(_cond)) { \ - BT_LOGF_STR("Library precondition not satisfied:"); \ + BT_LOGF_STR("Library precondition not satisfied; error is:"); \ BT_LIB_LOGF((_fmt), ##__VA_ARGS__); \ BT_LOGF_STR("Aborting..."); \ abort(); \ -- 2.34.1