Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 681a90ff authored by Vineet Gupta's avatar Vineet Gupta Committed by Linus Torvalds
Browse files

arc, print-fatal-signals: reduce duplicated information



After the recent generic debug info on dump_stack() and friends, arc
is printing duplicate information on debug dumps.

 [ARCLinux]$ ./crash
 crash/50: potentially unexpected fatal signal 11.	<-- [1]
 /sbin/crash, TGID 50					<-- [2]
 Pid: 50, comm: crash Not tainted 3.9.0-rc4+ #132 	<-- [3]
 ...

Remove them.

[tj@kernel.org: updated patch desc]
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a43cb95d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ void print_task_path_n_nm(struct task_struct *tsk, char *buf)
	}
	}


done:
done:
	pr_info("%s, TGID %u\n", path_nm, tsk->tgid);
	pr_info("Path: %s\n", path_nm);
}
}
EXPORT_SYMBOL(print_task_path_n_nm);
EXPORT_SYMBOL(print_task_path_n_nm);


+1 −2
Original line number Original line Diff line number Diff line
@@ -1160,8 +1160,7 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
static void print_fatal_signal(int signr)
static void print_fatal_signal(int signr)
{
{
	struct pt_regs *regs = signal_pt_regs();
	struct pt_regs *regs = signal_pt_regs();
	printk(KERN_INFO "%s/%d: potentially unexpected fatal signal %d.\n",
	printk(KERN_INFO "potentially unexpected fatal signal %d.\n", signr);
		current->comm, task_pid_nr(current), signr);


#if defined(__i386__) && !defined(__arch_um__)
#if defined(__i386__) && !defined(__arch_um__)
	printk(KERN_INFO "code at %08lx: ", regs->ip);
	printk(KERN_INFO "code at %08lx: ", regs->ip);