X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fport.c;h=291615a81955e98a15a0e9c5a08f5df1880332b4;hp=52ebc7f851b5c3de39ce8452ef6b886499363ebb;hb=d5b13b9b6a434797f856547be1ca6a59f70ba530;hpb=0a83319b57c7f5d1f37a8c1af9a39daf6d503122 diff --git a/src/lib/graph/port.c b/src/lib/graph/port.c index 52ebc7f8..291615a8 100644 --- a/src/lib/graph/port.c +++ b/src/lib/graph/port.c @@ -73,34 +73,34 @@ end: const char *bt_port_get_name(const struct bt_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return port->name->str; } enum bt_port_type bt_port_get_type(const struct bt_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return port->type; } const struct bt_connection *bt_port_borrow_connection_const( const struct bt_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return port->connection; } const struct bt_component *bt_port_borrow_component_const( const struct bt_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return bt_port_borrow_component_inline(port); } struct bt_self_component *bt_self_component_port_borrow_component( struct bt_self_component_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return (void *) bt_object_borrow_parent((void *) port); } @@ -120,13 +120,13 @@ void bt_port_set_connection(struct bt_port *port, bt_bool bt_port_is_connected(const struct bt_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return port->connection ? BT_TRUE : BT_FALSE; } void *bt_self_component_port_get_data(const struct bt_self_component_port *port) { - BT_ASSERT_PRE_DEV_NON_NULL(port, "Port"); + BT_ASSERT_PRE_DEV_PORT_NON_NULL(port); return ((struct bt_port *) port)->user_data; }