X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fgraph%2Fport.c;fp=src%2Flib%2Fgraph%2Fport.c;h=d7455dca82afb1c6ce33185d04a277e9cc982c18;hb=870631a2db01676b476dbee615aade0a22926bcd;hp=df7c84df7285f26abe6cc87c90ec6e8f22eb3682;hpb=3cd4c495b8c065ababc249f66d460c4a707d415a;p=babeltrace.git diff --git a/src/lib/graph/port.c b/src/lib/graph/port.c index df7c84df..d7455dca 100644 --- a/src/lib/graph/port.c +++ b/src/lib/graph/port.c @@ -66,7 +66,7 @@ struct bt_port *bt_port_create(struct bt_component *parent_component, BT_ASSERT(strlen(name) > 0); port = g_new0(struct bt_port, 1); if (!port) { - BT_LOGE_STR("Failed to allocate one port."); + BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one port."); goto end; } @@ -76,7 +76,7 @@ struct bt_port *bt_port_create(struct bt_component *parent_component, bt_object_init_shared_with_parent(&port->base, destroy_port); port->name = g_string_new(name); if (!port->name) { - BT_LOGE_STR("Failed to allocate one GString."); + BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one GString."); BT_OBJECT_PUT_REF_AND_RESET(port); goto end; }