Cleanup: flt.lttng-utils.debug-info: indentation fixes
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 13 Jul 2020 20:20:14 +0000 (16:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jul 2020 22:39:19 +0000 (18:39 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: If177e044acc85672b18fb88d06af3296516057e4

src/plugins/lttng-utils/debug-info/bin-info.c
src/plugins/lttng-utils/debug-info/dwarf.c
src/plugins/lttng-utils/debug-info/utils.c

index ac882fe1e648dde5586b08a26cd330143d23c10b..b5afb0ff8672a5ccf8276dfdde123a4aba924dad 100644 (file)
@@ -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);
index 5c80278aacfdc5c827ba240057dddbc421b50f24..d4777ab72bf74291f44d798f66c005ab1227359d 100644 (file)
@@ -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;
        }
index 0042e8aab7af7cbb9d118b1185b462ee4840bced..6b7b4c7ab18f4e22298737d501d93d3832010753 100644 (file)
@@ -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;
        }
This page took 0.027839 seconds and 4 git commands to generate.