Skip to content

Commit 59b57ab

Browse files
committed
Fix indents and remove trailing whitespace
and remove one blank line. modified: src/bin/dwarfdump/print_die.c modified: src/lib/libdwarf/dwarf_line_table_reader_common.h modified: src/lib/libdwarf/libdwarf.h
1 parent 5120fcb commit 59b57ab

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/bin/dwarfdump/print_die.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ dd_check_die_abbrevs(Dwarf_Debug dbg, Dwarf_Die in_die,
18331833
return DW_DLV_OK;
18341834
}
18351835

1836-
static int
1836+
static int
18371837
dwarf_check_child_offset(Dwarf_Debug dbg,
18381838
Dwarf_Die child,
18391839
Dwarf_Error *err)
@@ -1907,14 +1907,13 @@ dd_validate_die_sibling(Dwarf_Debug dbg, Dwarf_Die sibling)
19071907
}
19081908
if (dwarf_validate_die_sibling(sibling,&glb_off) ==
19091909
DW_DLV_ERROR) {
1910-
Dwarf_Off sib_off;
1910+
Dwarf_Off sib_off;
19111911
struct esb_s msg;
1912-
Dwarf_Error err = 0;
1912+
Dwarf_Error err = 0;
19131913
int dores = 0;
19141914

19151915
esb_constructor(&msg);
19161916
dores = dwarf_dieoffset(sibling,&sib_off,&err);
1917-
19181917
if (dores == DW_DLV_OK) {
19191918
esb_append_printf_u(&msg,
19201919
"GSIB = 0x%" DW_PR_XZEROS DW_PR_DUx,
@@ -2034,7 +2033,7 @@ print_die_and_children_internal(Dwarf_Debug dbg,
20342033
/* child first: we are doing depth-first walk */
20352034
if (childres == DW_DLV_OK) {
20362035
int chkoffres = 0;
2037-
2036+
20382037
chkoffres = dwarf_check_child_offset(dbg,child,
20392038
err);
20402039
if (chkoffres == DW_DLV_ERROR) {

src/lib/libdwarf/dwarf_line_table_reader_common.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ read_uword_de(Dwarf_Small **lp,
130130
static void
131131
IssueExpError(Dwarf_Debug dbg,
132132
Dwarf_Error *err,
133-
const char * msg,
133+
const char * msg,
134134
Dwarf_Unsigned val)
135135
{
136136
dwarfstring m;
@@ -139,10 +139,9 @@ IssueExpError(Dwarf_Debug dbg,
139139
dwarfstring_constructor_static(&m, buf,sizeof(buf));
140140
dwarfstring_append(&m , "ERROR: ");
141141
dwarfstring_append(&m ,(char *)msg);
142-
dwarfstring_append_printf_u(&m , " Bad value: 0x%x",
143-
val);
142+
dwarfstring_append_printf_u(&m , " Bad value: 0x%x", val);
144143
_dwarf_error_string(dbg, err, DW_DLE_LINE_TABLE_BAD,
145-
dwarfstring_string(&m));
144+
dwarfstring_string(&m));
146145
dwarfstring_destructor(&m);
147146
}
148147

@@ -1076,9 +1075,9 @@ _dwarf_read_line_table_header(Dwarf_Debug dbg,
10761075
}
10771076
if (subprog_format_count > total_length) {
10781077
IssueExpError(dbg,err,
1079-
"Subprog format count Count too "
1080-
"large to be real",
1081-
subprog_format_count);
1078+
"Subprog format count Count too "
1079+
"large to be real",
1080+
subprog_format_count);
10821081
free(subprog_entry_types);
10831082
return DW_DLV_ERROR;
10841083
}

src/lib/libdwarf/libdwarf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ DW_API int dwarf_die_abbrev_children_flag(Dwarf_Die dw_die,
22332233
dwarfdump is checking for valid DWARF but
22342234
it depends on the caller to have done
22352235
precise setup. Ignore it or read the comments
2236-
for this function in dwarf_die_deliv.c.
2236+
for this function in dwarf_die_deliv.c.
22372237
*/
22382238
DW_API int dwarf_validate_die_sibling(Dwarf_Die dw_sibling,
22392239
Dwarf_Off* dw_offset);

0 commit comments

Comments
 (0)