From 225f3384db6d41dc4dbe27e8183ebeca16c63db3 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 15 May 2017 20:42:24 -0400 Subject: [PATCH] lib/ctf-ir/field-types.c: logging: log more details when freezing 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/field-types.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/ctf-ir/field-types.c b/lib/ctf-ir/field-types.c index 4d7f3fee..3e41cd69 100644 --- a/lib/ctf-ir/field-types.c +++ b/lib/ctf-ir/field-types.c @@ -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); } -- 2.34.1