From d409daba48de62cd973f8cc4ba60739afb4d280f Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 15 May 2017 22:36:47 -0400 Subject: [PATCH] lib/ctf-ir/packet.c: add more debug logging 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/packet.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ctf-ir/packet.c b/lib/ctf-ir/packet.c index d02d45bf..fd31398d 100644 --- a/lib/ctf-ir/packet.c +++ b/lib/ctf-ir/packet.c @@ -176,7 +176,9 @@ void bt_ctf_packet_freeze(struct bt_ctf_packet *packet) } BT_LOGD("Freezing packet: addr=%p", packet); + BT_LOGD_STR("Freezing packet's header field."); bt_ctf_field_freeze(packet->header); + BT_LOGD_STR("Freezing packet's context field."); bt_ctf_field_freeze(packet->context); packet->frozen = 1; } @@ -188,8 +190,11 @@ void bt_ctf_packet_destroy(struct bt_object *obj) packet = container_of(obj, struct bt_ctf_packet, base); BT_LOGD("Destroying packet: addr=%p", packet); + BT_LOGD_STR("Putting packet's header field."); bt_put(packet->header); + BT_LOGD_STR("Putting packet's context field."); bt_put(packet->context); + BT_LOGD_STR("Putting packet's stream."); bt_put(packet->stream); g_free(packet); } -- 2.34.1