Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Tejun 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Vineet Gupta and committed by
Linus Torvalds
681a90ff a43cb95d

+2 -3
+1 -1
arch/arc/kernel/troubleshoot.c
··· 71 71 } 72 72 73 73 done: 74 - pr_info("%s, TGID %u\n", path_nm, tsk->tgid); 74 + pr_info("Path: %s\n", path_nm); 75 75 } 76 76 EXPORT_SYMBOL(print_task_path_n_nm); 77 77
+1 -2
kernel/signal.c
··· 1160 1160 static void print_fatal_signal(int signr) 1161 1161 { 1162 1162 struct pt_regs *regs = signal_pt_regs(); 1163 - printk(KERN_INFO "%s/%d: potentially unexpected fatal signal %d.\n", 1164 - current->comm, task_pid_nr(current), signr); 1163 + printk(KERN_INFO "potentially unexpected fatal signal %d.\n", signr); 1165 1164 1166 1165 #if defined(__i386__) && !defined(__arch_um__) 1167 1166 printk(KERN_INFO "code at %08lx: ", regs->ip);