* [PATCH] metag: Remove duplicate KERN_<LEVEL> prefix
@ 2016-07-14 17:10 Joe Perches
2016-07-15 9:13 ` James Hogan
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2016-07-14 17:10 UTC (permalink / raw)
To: linux-kernel; +Cc: James Hogan, linux-metag
Use a bare printk to avoid a duplicate KERN_<LEVEL> in logging output.
Signed-off-by: Joe Perches <joe@perches.com>
---
arch/metag/mm/fault.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
index 372783a..c765b36 100644
--- a/arch/metag/mm/fault.c
+++ b/arch/metag/mm/fault.c
@@ -187,7 +187,7 @@ bad_area_nosemaphore:
if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) &&
printk_ratelimit()) {
- pr_info("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
+ printk("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
tsk->comm, task_pid_nr(tsk), address,
regs->ctx.CurrPC, regs->ctx.AX[0].U0,
--
2.8.0.rc4.16.g56331f8
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] metag: Remove duplicate KERN_<LEVEL> prefix
2016-07-14 17:10 [PATCH] metag: Remove duplicate KERN_<LEVEL> prefix Joe Perches
@ 2016-07-15 9:13 ` James Hogan
0 siblings, 0 replies; 2+ messages in thread
From: James Hogan @ 2016-07-15 9:13 UTC (permalink / raw)
To: Joe Perches; +Cc: linux-kernel, linux-metag
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
Hi Joe,
On Thu, Jul 14, 2016 at 10:10:13AM -0700, Joe Perches wrote:
> Use a bare printk to avoid a duplicate KERN_<LEVEL> in logging output.
>
> Signed-off-by: Joe Perches <joe@perches.com>
Thanks, applied for 4.8.
This appears to have been introduced accidentally while I was checkpatch
cleaning ready for submitting arch/metag upstream.
Cheers
James
> ---
> arch/metag/mm/fault.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
> index 372783a..c765b36 100644
> --- a/arch/metag/mm/fault.c
> +++ b/arch/metag/mm/fault.c
> @@ -187,7 +187,7 @@ bad_area_nosemaphore:
>
> if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) &&
> printk_ratelimit()) {
> - pr_info("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
> + printk("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
> task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
> tsk->comm, task_pid_nr(tsk), address,
> regs->ctx.CurrPC, regs->ctx.AX[0].U0,
> --
> 2.8.0.rc4.16.g56331f8
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-15 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 17:10 [PATCH] metag: Remove duplicate KERN_<LEVEL> prefix Joe Perches
2016-07-15 9:13 ` James Hogan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®