Skip to content

Commit

Permalink
arm64: Remove useless message during oops
Browse files Browse the repository at this point in the history
During an oops, we print the name of the current task and its pid twice.
We also helpfully advertise its stack limit as "0x(____ptrval____)".

Drop these useless messages.

Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
wildea01 committed May 23, 2019
1 parent a188339 commit 3e29ead
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/arm64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ void show_stack(struct task_struct *tsk, unsigned long *sp)

static int __die(const char *str, int err, struct pt_regs *regs)
{
struct task_struct *tsk = current;
static int die_counter;
int ret;

Expand All @@ -181,9 +180,6 @@ static int __die(const char *str, int err, struct pt_regs *regs)
return ret;

print_modules();
pr_emerg("Process %.*s (pid: %d, stack limit = 0x%p)\n",
TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk),
end_of_stack(tsk));
show_regs(regs);

if (!user_mode(regs))
Expand Down

0 comments on commit 3e29ead

Please sign in to comment.