mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ia64: 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]
Signed-off-by: Sergey Senozhatsky <[email protected]>
[[email protected]: updated commit message]
Signed-off-by: Petr Mladek <[email protected]>
This commit is contained in:
parent
4717fc192a
commit
253c962020
1 changed files with 3 additions and 7 deletions
|
|
@ -13,7 +13,6 @@
|
|||
#include <linux/pm.h>
|
||||
#include <linux/elf.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/kallsyms.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -69,7 +68,6 @@ void
|
|||
ia64_do_show_stack (struct unw_frame_info *info, void *arg)
|
||||
{
|
||||
unsigned long ip, sp, bsp;
|
||||
char buf[128]; /* don't make it so big that it overflows the stack! */
|
||||
|
||||
printk("\nCall Trace:\n");
|
||||
do {
|
||||
|
|
@ -79,11 +77,9 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg)
|
|||
|
||||
unw_get_sp(info, &sp);
|
||||
unw_get_bsp(info, &bsp);
|
||||
snprintf(buf, sizeof(buf),
|
||||
" [<%016lx>] %%s\n"
|
||||
printk(" [<%016lx>] %pS\n"
|
||||
" sp=%016lx bsp=%016lx\n",
|
||||
ip, sp, bsp);
|
||||
print_symbol(buf, ip);
|
||||
ip, (void *)ip, sp, bsp);
|
||||
} while (unw_unwind(info) >= 0);
|
||||
}
|
||||
|
||||
|
|
@ -111,7 +107,7 @@ show_regs (struct pt_regs *regs)
|
|||
printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)\n",
|
||||
regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(),
|
||||
init_utsname()->release);
|
||||
print_symbol("ip is at %s\n", ip);
|
||||
printk("ip is at %pS\n", (void *)ip);
|
||||
printk("unat: %016lx pfs : %016lx rsc : %016lx\n",
|
||||
regs->ar_unat, regs->ar_pfs, regs->ar_rsc);
|
||||
printk("rnat: %016lx bsps: %016lx pr : %016lx\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue