Skip to content

Commit 2bc3dec

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Don't print parentheses in function addresses
The parentheses in the "func()+off" address output are inconsistent with how the kernel prints function addresses, breaking Peter's scripts. Remove them. Suggested-by: Peter Zijlstra <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Link: https://lkml.kernel.org/r/f2bec70312f62ef4f1ea21c134d9def627182ad3.1650300597.git.jpoimboe@redhat.com
1 parent b51277e commit 2bc3dec

File tree

1 file changed

+1
-5
lines changed
  • tools/objtool/include/objtool

1 file changed

+1
-5
lines changed

tools/objtool/include/objtool/warn.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ static inline char *offstr(struct section *sec, unsigned long offset)
3333
}
3434

3535
str = malloc(strlen(name) + 20);
36-
37-
if (func)
38-
sprintf(str, "%s()+0x%lx", name, name_off);
39-
else
40-
sprintf(str, "%s+0x%lx", name, name_off);
36+
sprintf(str, "%s+0x%lx", name, name_off);
4137

4238
return str;
4339
}

0 commit comments

Comments
 (0)