lib: create common base for bt_component_class_{source,filter}
[babeltrace.git] / src / common / assert.c
index c4a18c4e38ba47894a88402c8c3d0017d866091c..99080f7ba208f21f2299563a3019d25e578114f3 100644 (file)
@@ -30,14 +30,14 @@ void bt_common_assert_failed(const char *file, int line, const char *func,
 {
        fprintf(stderr,
                "%s\n%s%s%s (╯°□°)╯︵ ┻━┻ %s %s%s%s%s:%s%d%s: %s%s()%s: "
-               "%sAssertion %s`%s`%s%s failed.%s\n",
+               "%sAssertion %s%s`%s`%s%s failed.%s\n",
                bt_common_color_reset(),
                bt_common_color_bold(),
                bt_common_color_bg_yellow(),
-               bt_common_color_fg_red(),
+               bt_common_color_fg_bright_red(),
                bt_common_color_reset(),
                bt_common_color_bold(),
-               bt_common_color_fg_magenta(),
+               bt_common_color_fg_bright_magenta(),
                file,
                bt_common_color_reset(),
                bt_common_color_fg_green(),
@@ -48,9 +48,10 @@ void bt_common_assert_failed(const char *file, int line, const char *func,
                bt_common_color_reset(),
                bt_common_color_fg_red(),
                bt_common_color_bold(),
+               bt_common_color_fg_bright_red(),
                assertion,
                bt_common_color_reset(),
                bt_common_color_fg_red(),
                bt_common_color_reset());
-       abort();
+       bt_common_abort();
 }
This page took 0.032768 seconds and 4 git commands to generate.