+ stream_class = bt_ctf_stream_borrow_stream_class(stream);
+ assert(stream_class);
+
+ if (stream->pos.fd >= 0) {
+ BT_LOGW("Invalid parameter: stream is a CTF writer stream: "
+ "stream-addr=%p, stream-name=\"%s\", "
+ "stream-class-addr=%p, stream-class-name\"%s\", "
+ "stream-class-id=%" PRId64,
+ stream, bt_ctf_stream_get_name(stream), stream_class,
+ bt_ctf_stream_class_get_name(stream_class),
+ bt_ctf_stream_class_get_id(stream_class));
+ goto error;
+ }
+
+ BT_LOGD("Creating stream beginning notification object: "
+ "stream-addr=%p, stream-name=\"%s\", "
+ "stream-class-addr=%p, stream-class-name=\"%s\", "
+ "stream-class-id=%" PRId64,
+ stream, bt_ctf_stream_get_name(stream),
+ stream_class,
+ bt_ctf_stream_class_get_name(stream_class),
+ bt_ctf_stream_class_get_id(stream_class));