From: Philippe Proulx Date: Mon, 18 Feb 2019 23:14:27 +0000 (-0500) Subject: assert-pre-internal.h: append "error is" to first message X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=39756a2d8043287d1378563690fca78d3ca3b0f9;p=deliverable%2Fbabeltrace.git 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 --- 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(); \