From cbb6e80508dfe62c2c985f37c9aedf53d90acab4 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 13 Jul 2020 16:20:14 -0400 Subject: [PATCH] Cleanup: flt.lttng-utils.debug-info: indentation fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: If177e044acc85672b18fb88d06af3296516057e4 --- src/plugins/lttng-utils/debug-info/bin-info.c | 16 ++++++++-------- src/plugins/lttng-utils/debug-info/dwarf.c | 4 ++-- src/plugins/lttng-utils/debug-info/utils.c | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/plugins/lttng-utils/debug-info/bin-info.c b/src/plugins/lttng-utils/debug-info/bin-info.c index ac882fe1..b5afb0ff 100644 --- a/src/plugins/lttng-utils/debug-info/bin-info.c +++ b/src/plugins/lttng-utils/debug-info/bin-info.c @@ -376,7 +376,7 @@ int bin_info_set_build_id(struct bin_info *bin, uint8_t *build_id, bin->file_build_id_matches = is_build_id_matching(bin); if (!bin->file_build_id_matches) { BT_COMP_LOGI_STR("Supplied Build ID does not match Build ID of the " - "binary or library found on the file system."); + "binary or library found on the file system."); goto error; } @@ -922,7 +922,7 @@ int bin_info_lookup_elf_function_name(struct bin_info *bin, uint64_t addr, while (scn && !sym) { ret = bin_info_get_nearest_symbol_from_section( - scn, addr, &sym, &shdr); + scn, addr, &sym, &shdr); if (ret) { goto error; } @@ -932,13 +932,13 @@ int bin_info_lookup_elf_function_name(struct bin_info *bin, uint64_t addr, if (sym) { sym_name = elf_strptr(bin->elf_file, shdr->sh_link, - sym->st_name); + sym->st_name); if (!sym_name) { goto error; } ret = bin_info_append_offset_str(sym_name, sym->st_value, addr, - func_name); + func_name); if (ret) { goto error; } @@ -1020,7 +1020,7 @@ int bin_info_lookup_cu_function_name(struct bt_dwarf_cu *cu, uint64_t addr, } ret = bin_info_append_offset_str(die_name, low_addr, addr, - func_name); + func_name); free(die_name); if (ret) { goto error; @@ -1115,7 +1115,7 @@ int bin_info_lookup_function_name(struct bin_info *bin, ret = bin_info_set_dwarf_info(bin); if (ret) { BT_COMP_LOGI_STR("Failed to set bin dwarf info, falling " - "back to ELF lookup."); + "back to ELF lookup."); /* Failed to set DWARF info, fallback to ELF. */ bin->is_elf_only = true; } @@ -1135,14 +1135,14 @@ int bin_info_lookup_function_name(struct bin_info *bin, if (bin->is_elf_only) { ret = bin_info_lookup_elf_function_name(bin, addr, - &_func_name); + &_func_name); if (ret) { BT_COMP_LOGI("Failed to lookup function name (ELF): " "ret=%d", ret); } } else { ret = bin_info_lookup_dwarf_function_name(bin, addr, - &_func_name); + &_func_name); if (ret) { BT_COMP_LOGI("Failed to lookup function name (DWARF): " "ret=%d", ret); diff --git a/src/plugins/lttng-utils/debug-info/dwarf.c b/src/plugins/lttng-utils/debug-info/dwarf.c index 5c80278a..d4777ab7 100644 --- a/src/plugins/lttng-utils/debug-info/dwarf.c +++ b/src/plugins/lttng-utils/debug-info/dwarf.c @@ -51,7 +51,7 @@ int bt_dwarf_cu_next(struct bt_dwarf_cu *cu) } ret = dwarf_nextcu(cu->dwarf_info, cu->next_offset, &next_offset, - &cu_header_size, NULL, NULL, NULL); + &cu_header_size, NULL, NULL, NULL); if (ret) { /* ret is -1 on error, 1 if no next CU. */ goto end; @@ -81,7 +81,7 @@ struct bt_dwarf_die *bt_dwarf_die_create(struct bt_dwarf_cu *cu) } dwarf_die = dwarf_offdie(cu->dwarf_info, cu->offset + cu->header_size, - dwarf_die); + dwarf_die); if (!dwarf_die) { goto error; } diff --git a/src/plugins/lttng-utils/debug-info/utils.c b/src/plugins/lttng-utils/debug-info/utils.c index 0042e8aa..6b7b4c7a 100644 --- a/src/plugins/lttng-utils/debug-info/utils.c +++ b/src/plugins/lttng-utils/debug-info/utils.c @@ -54,7 +54,7 @@ bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_clas * context. Do not try to add it. */ member = bt_field_class_structure_borrow_member_by_name_const( - in_field_class, debug_info_field_class_name); + in_field_class, debug_info_field_class_name); if (member) { goto end; } @@ -64,7 +64,7 @@ bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_clas * class. */ member = bt_field_class_structure_borrow_member_by_name_const( - in_field_class, IP_FIELD_NAME); + in_field_class, IP_FIELD_NAME); if (!member) { goto end; } @@ -77,7 +77,7 @@ bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_clas } member = bt_field_class_structure_borrow_member_by_name_const( - in_field_class, VPID_FIELD_NAME); + in_field_class, VPID_FIELD_NAME); if (!member) { goto end; } -- 2.34.1