I don't think there a legimitate case for the print_field function to
encounter an invalid field class type. Change it to abort instead of
returning an error.
Change-Id: I333d2221b828841aff38a7d8b0a17032af3aafb1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7580
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7573
} else if (bt_field_class_type_is(class_id,
BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY)) {
return print_sequence(pretty, field, print_names);
- } else {
- // TODO: log instead
- fprintf(pretty->err, "[error] Unknown type id: %d\n", (int) class_id);
- return -1;
}
+
+ bt_common_abort();
}
static