- 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_stream_get_name(stream), stream_class,
- bt_stream_class_get_name(stream_class),
- bt_stream_class_get_id(stream_class));
- goto error;
- }
-