lib: use common precond. assert. macros from `assert-cond.h` thru lib
[babeltrace.git] / src / lib / graph / connection.c
index c470994ee4c963fc57b136065355fecfd42a2b8e..eb84c11b60b88baaa72659b44c0954941811f33b 100644 (file)
@@ -215,14 +215,14 @@ void bt_connection_end(struct bt_connection *conn, bool try_remove_from_graph)
 const struct bt_port_output *bt_connection_borrow_upstream_port_const(
                const struct bt_connection *connection)
 {
-       BT_ASSERT_PRE_DEV_NON_NULL(connection, "Connection");
+       BT_ASSERT_PRE_DEV_CONN_NON_NULL(connection);
        return (void *) connection->upstream_port;
 }
 
 const struct bt_port_input *bt_connection_borrow_downstream_port_const(
                const struct bt_connection *connection)
 {
-       BT_ASSERT_PRE_DEV_NON_NULL(connection, "Connection");
+       BT_ASSERT_PRE_DEV_CONN_NON_NULL(connection);
        return (void *) connection->downstream_port;
 }
 
This page took 0.023225 seconds and 4 git commands to generate.