#include "lib/logging.h"
#include "common/assert.h"
-#include "lib/assert-pre.h"
-#include "lib/assert-post.h"
+#include "lib/assert-cond.h"
#include <babeltrace2/graph/connection.h>
#include "lib/object.h"
#include "compat/compiler.h"
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;
}