summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_stack.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-07-16 14:17:11 +0800
committerFrederic Weisbecker <fweisbec@gmail.com>2009-07-17 01:44:10 -0400
commit79173bf556417a737e9d2e096e0788452ec30a61 (patch)
treec27a263ce2efae15ad7b045f60cd28a0b2390862 /kernel/trace/trace_stack.c
parent64fbcd162819bddaf0d99e78b16371b655aa5dee (diff)
downloadblackbird-op-linux-79173bf556417a737e9d2e096e0788452ec30a61.tar.gz
blackbird-op-linux-79173bf556417a737e9d2e096e0788452ec30a61.zip
tracing/trace_stack: Cleanup for trace_lookup_stack()
We can directly use %pF input format instead of sprint_symbol() and %s input format. Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_stack.c')
-rw-r--r--kernel/trace/trace_stack.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
index e644af910124..a4dc8d9ad1b1 100644
--- a/kernel/trace/trace_stack.c
+++ b/kernel/trace/trace_stack.c
@@ -234,15 +234,8 @@ static void t_stop(struct seq_file *m, void *p)
static int trace_lookup_stack(struct seq_file *m, long i)
{
unsigned long addr = stack_dump_trace[i];
-#ifdef CONFIG_KALLSYMS
- char str[KSYM_SYMBOL_LEN];
- sprint_symbol(str, addr);
-
- return seq_printf(m, "%s\n", str);
-#else
- return seq_printf(m, "%p\n", (void*)addr);
-#endif
+ return seq_printf(m, "%pF\n", (void *)addr);
}
static void print_disabled(struct seq_file *m)
OpenPOWER on IntegriCloud