Skip to content

Commit 9e6a42f

Browse files
sergey-senozhatskypmladek
authored andcommitted
sh: 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. 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: Rich Felker <[email protected]> Signed-off-by: Sergey Senozhatsky <[email protected]> [[email protected]: updated commit message, fixed complication warning] Signed-off-by: Petr Mladek <[email protected]>
1 parent 67580c9 commit 9e6a42f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/sh/kernel/process_32.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <linux/sched/task_stack.h>
2121
#include <linux/slab.h>
2222
#include <linux/elfcore.h>
23-
#include <linux/kallsyms.h>
2423
#include <linux/fs.h>
2524
#include <linux/ftrace.h>
2625
#include <linux/hw_breakpoint.h>
@@ -37,8 +36,8 @@ void show_regs(struct pt_regs * regs)
3736
printk("\n");
3837
show_regs_print_info(KERN_DEFAULT);
3938

40-
print_symbol("PC is at %s\n", instruction_pointer(regs));
41-
print_symbol("PR is at %s\n", regs->pr);
39+
printk("PC is at %pS\n", (void *)instruction_pointer(regs));
40+
printk("PR is at %pS\n", (void *)regs->pr);
4241

4342
printk("PC : %08lx SP : %08lx SR : %08lx ",
4443
regs->pc, regs->regs[15], regs->sr);

0 commit comments

Comments
 (0)