+ BUF_APPEND(", %sref-count=%llu", prefix, obj->ref_count);
+}
+
+static inline void format_uuid(char **buf_ch, bt_uuid uuid)
+{
+ BUF_APPEND("\"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\"",
+ (unsigned int) uuid[0],
+ (unsigned int) uuid[1],
+ (unsigned int) uuid[2],
+ (unsigned int) uuid[3],
+ (unsigned int) uuid[4],
+ (unsigned int) uuid[5],
+ (unsigned int) uuid[6],
+ (unsigned int) uuid[7],
+ (unsigned int) uuid[8],
+ (unsigned int) uuid[9],
+ (unsigned int) uuid[10],
+ (unsigned int) uuid[11],
+ (unsigned int) uuid[12],
+ (unsigned int) uuid[13],
+ (unsigned int) uuid[14],
+ (unsigned int) uuid[15]);
+}
+
+static inline void format_object_pool(char **buf_ch, bool extended,
+ const char *prefix, struct bt_object_pool *pool)
+{
+ BUF_APPEND(", %ssize=%zu", PRFIELD(pool->size));
+
+ if (pool->objects) {
+ BUF_APPEND(", %scap=%u", PRFIELD(pool->objects->len));
+ }
+}
+
+static inline void format_integer_field_type(char **buf_ch,
+ bool extended, const char *prefix,
+ struct bt_field_type *field_type)
+{
+ struct bt_field_type_integer *int_ft = (void *) field_type;
+
+ BUF_APPEND(", %srange-size=%" PRIu64 ", %sbase=%s",
+ PRFIELD(int_ft->range),
+ PRFIELD(bt_common_field_type_integer_preferred_display_base_string(int_ft->base)));
+}
+
+static inline void format_array_field_type(char **buf_ch,
+ bool extended, const char *prefix,
+ struct bt_field_type *field_type)
+{
+ struct bt_field_type_array *array_ft = (void *) field_type;
+
+ BUF_APPEND(", %selement-ft-addr=%p, %selement-ft-id=%s",
+ PRFIELD(array_ft->element_ft),
+ PRFIELD(bt_common_field_type_id_string(array_ft->element_ft->id)));