lib/ctf-ir/field-types.c: logging: log more details when freezing
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 16 May 2017 00:42:24 +0000 (20:42 -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/field-types.c

index 4d7f3fee5971700fe0a9c18a5074c0d7a3814af2..3e41cd69e3185d31ba523b0c0ac9f140aaa937dc 100644 (file)
@@ -3727,13 +3727,17 @@ void bt_ctf_field_type_enumeration_freeze(struct bt_ctf_field_type *type)
        BT_LOGD("Freezing enumeration field type object: addr=%p", type);
        set_enumeration_range_overlap(type);
        generic_field_type_freeze(type);
+       BT_LOGD("Freezing enumeration field type object's container field type: int-ft-addr=%p",
+               enumeration_type->container);
        bt_ctf_field_type_freeze(enumeration_type->container);
 }
 
 static
 void freeze_structure_field(struct structure_field *field)
 {
-       BT_LOGD("Freezing structure field type field: addr=%p", field);
+       BT_LOGD("Freezing structure/variant field type field: field-addr=%p, "
+               "field-ft-addr=%p, field-name=\"%s\"", field,
+               field->type, g_quark_to_string(field->name));
        bt_ctf_field_type_freeze(field->type);
 }
 
@@ -3773,6 +3777,8 @@ void bt_ctf_field_type_array_freeze(struct bt_ctf_field_type *type)
        BT_LOGD("Freezing array field type object: addr=%p", type);
        type->alignment = bt_ctf_field_type_get_alignment(type);
        generic_field_type_freeze(type);
+       BT_LOGD("Freezing array field type object's element field type: element-ft-addr=%p",
+               array_type->element_type);
        bt_ctf_field_type_freeze(array_type->element_type);
 }
 
@@ -3786,6 +3792,8 @@ void bt_ctf_field_type_sequence_freeze(struct bt_ctf_field_type *type)
        BT_LOGD("Freezing sequence field type object: addr=%p", type);
        type->alignment = bt_ctf_field_type_get_alignment(type);
        generic_field_type_freeze(type);
+       BT_LOGD("Freezing sequence field type object's element field type: element-ft-addr=%p",
+               sequence_type->element_type);
        bt_ctf_field_type_freeze(sequence_type->element_type);
 }
 
This page took 0.026108 seconds and 4 git commands to generate.