kernel: rename show_stack_loglvl() => show_stack()
Now the last users of show_stack() got converted to use an explicit log level, show_stack_loglvl() can drop it's redundant suffix and become once again well known show_stack(). Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200418201944.482088-51-dima@arista.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

کامیت شده توسط
Linus Torvalds

والد
fe1993a001
کامیت
9cb8f069de
@@ -126,7 +126,7 @@ unknown:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
void show_stack_loglvl(struct task_struct *task, unsigned long *stack,
|
||||
void show_stack(struct task_struct *task, unsigned long *stack,
|
||||
const char *loglvl)
|
||||
{
|
||||
struct unwind_state state;
|
||||
@@ -139,11 +139,6 @@ void show_stack_loglvl(struct task_struct *task, unsigned long *stack,
|
||||
debug_show_held_locks(task ? : current);
|
||||
}
|
||||
|
||||
void show_stack(struct task_struct *task, unsigned long *stack)
|
||||
{
|
||||
show_stack_loglvl(task, stack, KERN_DEFAULT);
|
||||
}
|
||||
|
||||
static void show_last_breaking_event(struct pt_regs *regs)
|
||||
{
|
||||
printk("Last Breaking-Event-Address:\n");
|
||||
@@ -181,7 +176,7 @@ void show_regs(struct pt_regs *regs)
|
||||
show_registers(regs);
|
||||
/* Show stack backtrace if pt_regs is from kernel mode */
|
||||
if (!user_mode(regs))
|
||||
show_stack(NULL, (unsigned long *) regs->gprs[15]);
|
||||
show_stack(NULL, (unsigned long *) regs->gprs[15], KERN_DEFAULT);
|
||||
show_last_breaking_event(regs);
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user