diff --git a/common/utils/itti_analyzer/libparser/array_type.c b/common/utils/itti_analyzer/libparser/array_type.c index 3d713dca02af00820e3a2c3b921b891b611250a5..2537839c559b5fcb0fcdb2e7b26a2f884c9241c7 100644 --- a/common/utils/itti_analyzer/libparser/array_type.c +++ b/common/utils/itti_analyzer/libparser/array_type.c @@ -51,13 +51,13 @@ int array_dissect_from_buffer( for (i = 0; i < (items - zero_counter); i++) type->child->type_dissect_from_buffer ( type->child, ui_set_signal_text_cb, user_data, buffer, parent_offset, - offset + i * type_child->size, type->name == NULL ? indent : indent + 4); + offset + i * type_child->size, type->name == NULL ? indent : indent + DISPLAY_TAB_SIZE); if (zero_counter > 0) { int length = 0; char cbuf[50]; - INDENTED_STRING(cbuf, type->name == NULL ? indent : indent + 4,); + INDENTED_STRING(cbuf, type->name == NULL ? indent : indent + DISPLAY_TAB_SIZE,); length = sprintf(cbuf, "[%d .. %d] ", i, items -1); diff --git a/common/utils/itti_analyzer/libparser/enum_type.c b/common/utils/itti_analyzer/libparser/enum_type.c index 063872dfa624bdd1f8309fef75220f4d97b2e174..889d40a72865f67ad8e9a2502da0cd38ec76d615 100644 --- a/common/utils/itti_analyzer/libparser/enum_type.c +++ b/common/utils/itti_analyzer/libparser/enum_type.c @@ -37,7 +37,7 @@ int enum_type_dissect_from_buffer( values->parent = type; values->type_dissect_from_buffer( values, ui_set_signal_text_cb, user_data, buffer, offset, parent_offset, - type->name == NULL ? indent: indent+4); + type->name == NULL ? indent: indent + DISPLAY_TAB_SIZE); break; } } diff --git a/common/utils/itti_analyzer/libparser/field_type.c b/common/utils/itti_analyzer/libparser/field_type.c index 225a75c8a2254a099650f42a827ec818c5b5765e..44c7ae3d4113b1f59ca5952ca7fbe78f5ca1cc1e 100644 --- a/common/utils/itti_analyzer/libparser/field_type.c +++ b/common/utils/itti_analyzer/libparser/field_type.c @@ -65,7 +65,7 @@ int field_dissect_from_buffer( if (type_child->type == TYPE_ARRAY || type_child->type == TYPE_STRUCT || type_child->type == TYPE_UNION) { DISPLAY_BRACE(ui_set_signal_text_cb(user_data, "{", 1);) ui_set_signal_text_cb(user_data, "\n", 1); - indent_child += 4; + indent_child += DISPLAY_TAB_SIZE; } if (type_child->type == TYPE_FUNDAMENTAL || type_child->type == TYPE_POINTER) { indent_child = 0; diff --git a/common/utils/itti_analyzer/libparser/reference_type.c b/common/utils/itti_analyzer/libparser/reference_type.c index dc485b1c9ffed0378726769751f0b4eddc57d31b..32e2f75c3e29d1223796f4d532453924b2981bc0 100644 --- a/common/utils/itti_analyzer/libparser/reference_type.c +++ b/common/utils/itti_analyzer/libparser/reference_type.c @@ -18,7 +18,7 @@ int reference_dissect_from_buffer( if (type->child != NULL) type->child->type_dissect_from_buffer(type->child, ui_set_signal_text_cb, user_data, buffer, offset, parent_offset, - type->name == NULL ? indent: indent+4); + type->name == NULL ? indent: indent + DISPLAY_TAB_SIZE); if (type->name) { INDENTED(stdout, indent, fprintf(stdout, "</%s>\n", type->name)); } diff --git a/common/utils/itti_analyzer/libparser/struct_type.c b/common/utils/itti_analyzer/libparser/struct_type.c index 5ded6d914ca5a18c10f598279dc2e75ea4523e71..c4d66918280e306c0720ab5459e65c31c95f42a5 100644 --- a/common/utils/itti_analyzer/libparser/struct_type.c +++ b/common/utils/itti_analyzer/libparser/struct_type.c @@ -35,7 +35,7 @@ int struct_dissect_from_buffer( type->members_child[i]->type_dissect_from_buffer ( type->members_child[i], ui_set_signal_text_cb, user_data, buffer, offset, parent_offset, - type->name == NULL ? indent : indent + 4); + type->name == NULL ? indent : indent + DISPLAY_TAB_SIZE); } DISPLAY_BRACE( diff --git a/common/utils/itti_analyzer/libparser/types.h b/common/utils/itti_analyzer/libparser/types.h index adb32fc9c4ee9abb99f84fcc9f26dd39f639e9f0..bfd057b8e3f113873869f134ce177779d8809c3b 100644 --- a/common/utils/itti_analyzer/libparser/types.h +++ b/common/utils/itti_analyzer/libparser/types.h @@ -21,6 +21,8 @@ # define DISPLAY_TYPE(tYPE) #endif +#define DISPLAY_TAB_SIZE (2) + #if (ENABLE_DISPLAY_PARSE_INFO != 0) # define DISPLAY_PARSE_INFO(tYPE, nAME, oFFSET, pARENToFFSET) \ { \ diff --git a/common/utils/itti_analyzer/libparser/union_type.c b/common/utils/itti_analyzer/libparser/union_type.c index a37db03ad09dca1812e77ed43dea5c01a2164819..9de5cd4c3e456571c78a2aaa8cb467c0975c1588 100644 --- a/common/utils/itti_analyzer/libparser/union_type.c +++ b/common/utils/itti_analyzer/libparser/union_type.c @@ -72,7 +72,7 @@ int union_dissect_from_buffer( if (type->members_child[union_child] != NULL) type->members_child[union_child]->type_dissect_from_buffer( type->members_child[union_child], ui_set_signal_text_cb, user_data, buffer, - offset, parent_offset, type->name == NULL ? indent : indent + 4); + offset, parent_offset, type->name == NULL ? indent : indent + DISPLAY_TAB_SIZE); if (type->name) { DISPLAY_TYPE("Uni");