Skip to content

Commit 4717fc1

Browse files
sergey-senozhatskypmladek
authored andcommitted
c6x: do not use print_symbol()
print_symbol() is a very old API that has been obsoleted by %pS format specifier in a normal printk() call. Replace print_symbol() with a direct printk("%pS") call and avoid using continuous lines. Link: http://lkml.kernel.org/r/[email protected] To: Andrew Morton <[email protected]> To: Russell King <[email protected]> To: Catalin Marinas <[email protected]> To: Mark Salter <[email protected]> To: Tony Luck <[email protected]> To: David Howells <[email protected]> To: Yoshinori Sato <[email protected]> To: Guan Xuetao <[email protected]> To: Borislav Petkov <[email protected]> To: Greg Kroah-Hartman <[email protected]> To: Thomas Gleixner <[email protected]> To: Peter Zijlstra <[email protected]> To: Vineet Gupta <[email protected]> To: Fengguang Wu <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Petr Mladek <[email protected]> Cc: LKML <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Aurelien Jacquiot <[email protected]> Signed-off-by: Sergey Senozhatsky <[email protected]> [[email protected]: updated commit message] Signed-off-by: Petr Mladek <[email protected]>
1 parent 4ef7963 commit 4717fc1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/c6x/kernel/traps.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <linux/module.h>
1212
#include <linux/ptrace.h>
1313
#include <linux/sched/debug.h>
14-
#include <linux/kallsyms.h>
1514
#include <linux/bug.h>
1615

1716
#include <asm/soc.h>
@@ -375,8 +374,7 @@ static void show_trace(unsigned long *stack, unsigned long *endstack)
375374
if (i % 5 == 0)
376375
pr_debug("\n ");
377376
#endif
378-
pr_debug(" [<%08lx>]", addr);
379-
print_symbol(" %s\n", addr);
377+
pr_debug(" [<%08lx>] %pS\n", addr, (void *)addr);
380378
i++;
381379
}
382380
}

0 commit comments

Comments
 (0)