- BT_ASSERT_PRE_NON_NULL(msg_iter, "Message iterator");
- BT_ASSERT_PRE_NON_NULL(packet, "Packet");
- stream = bt_packet_borrow_stream(packet);
- BT_ASSERT(stream);
- stream_class = bt_stream_borrow_class(stream);
- BT_ASSERT(stream_class);
- BT_LIB_LOGD("Creating packet end message object: "
- "%![packet-]+a, %![stream-]+s, %![sc-]+S",
- packet, stream, stream_class);
- message = (void *) bt_message_create_from_pool(
- &msg_iter->graph->packet_end_msg_pool, msg_iter->graph);
- if (!message) {
- /* bt_message_create_from_pool() logs errors */
- goto end;