Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933172AbcKHRJB (ORCPT ); Tue, 8 Nov 2016 12:09:01 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:10298 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbcKHRJA (ORCPT ); Tue, 8 Nov 2016 12:09:00 -0500 From: Matt Redfearn To: Ralf Baechle CC: , Matt Redfearn , Paul Gortmaker , , "Kirill A. Shutemov" , Andrew Morton Subject: [PATCH] MIPS: mm: Fix output of __do_page_fault Date: Tue, 8 Nov 2016 17:08:50 +0000 Message-ID: <1478624930-14111-1-git-send-email-matt.redfearn@imgtec.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1477 Lines: 40 Since commit 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") the output from __do_page_fault on MIPS has been pretty unreadable due to the lack of KERN_CONT markers. Use pr_cont to provide the appropriate markers & restore the expected output. Signed-off-by: Matt Redfearn --- arch/mips/mm/fault.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index d56a855828c2..abaf7393f354 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -209,17 +209,17 @@ static void __kprobes __do_page_fault(struct pt_regs *regs, unsigned long write, if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) && __ratelimit(&ratelimit_state)) { - pr_info("\ndo_page_fault(): sending SIGSEGV to %s for invalid %s %0*lx", + pr_info("do_page_fault(): sending SIGSEGV to %s for invalid %s %0*lx", tsk->comm, write ? "write access to" : "read access from", field, address); - pr_info("epc = %0*lx in", field, + pr_cont("epc = %0*lx in", field, (unsigned long) regs->cp0_epc); print_vma_addr(" ", regs->cp0_epc); - pr_info("ra = %0*lx in", field, + pr_cont("ra = %0*lx in", field, (unsigned long) regs->regs[31]); print_vma_addr(" ", regs->regs[31]); - pr_info("\n"); + pr_cont("\n"); } current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; info.si_signo = SIGSEGV; -- 2.7.4