Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / plugins / text / pretty / print.c
index 7aa461062e9451ffc7533aea8cd8411335deb00c..c2f202ae5872b2ffa3d29117eb8bd630c1b3900e 100644 (file)
@@ -31,6 +31,7 @@
 #include "common/assert.h"
 #include <inttypes.h>
 #include <ctype.h>
+#include <stdbool.h>
 #include <string.h>
 #include "pretty.h"
 
@@ -707,7 +708,7 @@ int print_enum(struct pretty_component *pretty,
                        &label_array, &label_count);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        if (ret) {
@@ -1382,7 +1383,7 @@ int pretty_print_discarded_items(struct pretty_component *pretty,
                elem_type = "packet";
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        BT_ASSERT(stream);
@@ -1410,7 +1411,7 @@ int pretty_print_discarded_items(struct pretty_component *pretty,
 
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        print_discarded_elements_msg(pretty, stream, begin, end,
This page took 0.025044 seconds and 4 git commands to generate.