lib/ctf-ir/packet.c: add more debug logging
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 16 May 2017 02:36:47 +0000 (22:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:43 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/packet.c

index d02d45bf76792c3ca0737119c9621e553b5f1b50..fd31398dbdb9018a838a7e3a14ff1353b14adb4b 100644 (file)
@@ -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);
 }
This page took 0.024212 seconds and 4 git commands to generate.