+ assert(ret == 0);
+
+ if (BT_LOG_ON_VERBOSE) {
+ if (bt_value_is_integer(value)) {
+ int64_t val;
+
+ ret = bt_value_integer_get(value, &val);
+ assert(ret == 0);
+ BT_LOGV("Set event class's integer attribute: "
+ "event-class-addr=%p, event-class-name=\"%s\", "
+ "event-class-id=%" PRId64 ", attr-name=\"%s\", "
+ "attr-value=%" PRId64,
+ event_class, bt_ctf_event_class_get_name(event_class),
+ bt_ctf_event_class_get_id(event_class), name,
+ val);
+ } else if (bt_value_is_string(value)) {
+ const char *val;
+
+ ret = bt_value_string_get(value, &val);
+ assert(ret == 0);
+ BT_LOGV("Set event class's string attribute: "
+ "event-class-addr=%p, event-class-name=\"%s\", "
+ "event-class-id=%" PRId64 ", attr-name=\"%s\", "
+ "attr-value=\"%s\"",
+ event_class, bt_ctf_event_class_get_name(event_class),
+ bt_ctf_event_class_get_id(event_class), name,
+ val);
+ }
+ }