X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fplugins%2Ftext%2Fdetails%2Fwrite.c;h=faf59f362d4729a7b02626ca21fd67e96b546981;hb=498e7994d60bd0e9f63c3d5c0fd00eec77ba7c34;hp=7b52335c817c733927bfa7139ceb86839fa726cc;hpb=502332367236f0cc3bf05dc3c2c34ca48f3e2a2f;p=babeltrace.git diff --git a/src/plugins/text/details/write.c b/src/plugins/text/details/write.c index 7b52335c..faf59f36 100644 --- a/src/plugins/text/details/write.c +++ b/src/plugins/text/details/write.c @@ -21,6 +21,7 @@ */ #include +#include #include #include @@ -101,7 +102,7 @@ void format_uint(char *buf, uint64_t value, unsigned int base) break; default: - abort(); + bt_common_abort(); } sprintf(buf_start, spec, value); @@ -154,7 +155,7 @@ void format_int(char *buf, int64_t value, unsigned int base) break; default: - abort(); + bt_common_abort(); } sprintf(buf_start, spec, abs_value); @@ -482,7 +483,7 @@ void write_value(struct details_write_ctx *ctx, const bt_value *value, break; } default: - abort(); + bt_common_abort(); } g_ptr_array_free(keys, TRUE); @@ -530,7 +531,7 @@ void write_int_field_class_props(struct details_write_ctx *ctx, write_uint_prop_value(ctx, 16); break; default: - abort(); + bt_common_abort(); } if (close) { @@ -787,7 +788,7 @@ void write_field_path(struct details_write_ctx *ctx, write_str_prop_value(ctx, "Event payload"); break; default: - abort(); + bt_common_abort(); } g_string_append(ctx->str, ": "); @@ -809,7 +810,7 @@ void write_field_path(struct details_write_ctx *ctx, write_str_prop_value(ctx, ""); break; default: - abort(); + bt_common_abort(); } } @@ -974,7 +975,7 @@ void write_field_class(struct details_write_ctx *ctx, const bt_field_class *fc) type = "Variant (signed integer selector)"; break; default: - abort(); + bt_common_abort(); } g_string_append_printf(ctx->str, "%s%s%s", @@ -1316,7 +1317,7 @@ void write_event_class(struct details_write_ctx *ctx, const bt_event_class *ec) ll_str = "Debug"; break; default: - abort(); + bt_common_abort(); } write_str_prop_line(ctx, "Log level", ll_str); @@ -1822,7 +1823,7 @@ void write_field(struct details_write_ctx *ctx, const bt_field *field, fmt_base = 16; break; default: - abort(); + bt_common_abort(); } if (bt_field_class_type_is(fc_type, @@ -1917,7 +1918,7 @@ void write_field(struct details_write_ctx *ctx, const bt_field *field, bt_field_variant_borrow_selected_option_field_const( field), NULL); } else { - abort(); + bt_common_abort(); } } @@ -2135,7 +2136,7 @@ void write_trace(struct details_write_ctx *ctx, const bt_trace *trace) write_str_prop_value(ctx, bt_value_string_get(value)); } else { - abort(); + bt_common_abort(); } write_nl(ctx); @@ -2574,7 +2575,7 @@ int details_write_message(struct details_comp *details_comp, ret = write_discarded_packets_message(&ctx, msg); break; default: - abort(); + bt_common_abort(); } /*