- BT_ASSERT_PRE_NO_ERROR();
- BT_ASSERT_PRE_OUTPUT_PORT_NAME_UNIQUE(comp, name);
-
- /* bt_component_add_output_port() logs details and errors */
- status = bt_component_add_output_port(comp, name, user_data, &port);
+ /*
+ * bt_component_add_output_port() logs details/errors and checks
+ * preconditions.
+ */
+ status = bt_component_add_output_port(comp, name, user_data, &port,
+ __func__);