*
* This function will set the count to the count of mapping labels that match
* the value. If count == 0, the caller has nothing to do, if count > 0,
- * the label_array contains the labels to print and the caller is reponsible
+ * the label_array contains the labels to print and the caller is responsible
* to call g_free on it once the values have been used.
*/
static
*
* This function will set the count to the count of mapping labels that match
* the value. If count == 0, the caller has nothing to do, if count > 0,
- * the label_array contains the labels to print and the caller is reponsible
+ * the label_array contains the labels to print and the caller is responsible
* to call g_free on it once the values have been used.
*/
static
} 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
return ret;
}
-BT_HIDDEN
int pretty_print_event(struct pretty_component *pretty,
const bt_message *event_msg)
{
return ret;
}
-BT_HIDDEN
int pretty_print_discarded_items(struct pretty_component *pretty,
const bt_message *msg)
{
return 0;
}
-BT_HIDDEN
void pretty_print_init(void)
{
strcpy(color_name, bt_common_color_bold());