assert-pre-internal.h: append "error is" to first message
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 18 Feb 2019 23:14:27 +0000 (18:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
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 <eeppeliteloop@gmail.com>
include/babeltrace/assert-pre-internal.h

index 3cb08b4ca23188fc758ee8da8cb9e6efdea0b909..e1a57dfe5df1dbecaca3f54cc7c3d0c051e340bf 100644 (file)
@@ -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();                                        \
This page took 0.024274 seconds and 4 git commands to generate.