From a2136ecadbc2d14c24d07126c65fd59611c29277 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 25 May 2017 03:05:33 -0400 Subject: [PATCH] bt_ctf_stream_map_component_to_port(): log before and after MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/ctf-ir/stream.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/ctf-ir/stream.c b/lib/ctf-ir/stream.c index 3ff937ac..e14a0146 100644 --- a/lib/ctf-ir/stream.c +++ b/lib/ctf-ir/stream.c @@ -1855,15 +1855,16 @@ void bt_ctf_stream_map_component_to_port(struct bt_ctf_stream *stream, * listener so that we remove this hash table entry when we know * the component is destroyed. */ - bt_component_add_destroy_listener(comp, component_destroy_listener, - stream); - g_hash_table_insert(stream->comp_cur_port, comp, port); - BT_LOGV("Mapped component to port for stream: stream-addr=%p, " - "stream-name=\"%s\", comp-addr=%p, comp-name=\"%s\", " - "port-addr=%p, port-name=\"%s\"", + BT_LOGV("Adding component's destroy listener for stream: " + "stream-addr=%p, stream-name=\"%s\", comp-addr=%p, " + "comp-name=\"%s\", port-addr=%p, port-name=\"%s\"", stream, bt_ctf_stream_get_name(stream), comp, bt_component_get_name(comp), port, bt_port_get_name(port)); + bt_component_add_destroy_listener(comp, component_destroy_listener, + stream); + g_hash_table_insert(stream->comp_cur_port, comp, port); + BT_LOGV_STR("Mapped component to port for stream."); } BT_HIDDEN -- 2.34.1