summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2022-04-18 19:50:28 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-04-22 13:32:02 +0300
commit2bc3dec7055e34c2c2e497f109da6748544c0791 (patch)
treedaddae82f45475b9ced902d0203cba5172f3a02a /tools/objtool
parentb51277eb9775ce916f9efd2c51533e481180c1e8 (diff)
downloadlinux-2bc3dec7055e34c2c2e497f109da6748544c0791.tar.xz
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 <peterz@infradead.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Link: https://lkml.kernel.org/r/f2bec70312f62ef4f1ea21c134d9def627182ad3.1650300597.git.jpoimboe@redhat.com
Diffstat (limited to 'tools/objtool')
-rw-r--r--tools/objtool/include/objtool/warn.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/objtool/include/objtool/warn.h b/tools/objtool/include/objtool/warn.h
index 802cfda0a6f6..c4bde3e2a79c 100644
--- a/tools/objtool/include/objtool/warn.h
+++ b/tools/objtool/include/objtool/warn.h
@@ -33,11 +33,7 @@ static inline char *offstr(struct section *sec, unsigned long offset)
}
str = malloc(strlen(name) + 20);
-
- if (func)
- sprintf(str, "%s()+0x%lx", name, name_off);
- else
- sprintf(str, "%s+0x%lx", name, name_off);
+ sprintf(str, "%s+0x%lx", name, name_off);
return str;
}