Skip to content

Commit 2a872a5

Browse files
mpredfearnralfbaechle
authored andcommitted
MIPS: mm: Fix output of __do_page_fault
Since commit 4bcc595 ("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 <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/14544/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 1031398 commit 2a872a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

arch/mips/mm/fault.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,18 @@ static void __kprobes __do_page_fault(struct pt_regs *regs, unsigned long write,
209209
if (show_unhandled_signals &&
210210
unhandled_signal(tsk, SIGSEGV) &&
211211
__ratelimit(&ratelimit_state)) {
212-
pr_info("\ndo_page_fault(): sending SIGSEGV to %s for invalid %s %0*lx",
212+
pr_info("do_page_fault(): sending SIGSEGV to %s for invalid %s %0*lx\n",
213213
tsk->comm,
214214
write ? "write access to" : "read access from",
215215
field, address);
216216
pr_info("epc = %0*lx in", field,
217217
(unsigned long) regs->cp0_epc);
218-
print_vma_addr(" ", regs->cp0_epc);
218+
print_vma_addr(KERN_CONT " ", regs->cp0_epc);
219+
pr_cont("\n");
219220
pr_info("ra = %0*lx in", field,
220221
(unsigned long) regs->regs[31]);
221-
print_vma_addr(" ", regs->regs[31]);
222-
pr_info("\n");
222+
print_vma_addr(KERN_CONT " ", regs->regs[31]);
223+
pr_cont("\n");
223224
}
224225
current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f;
225226
info.si_signo = SIGSEGV;

0 commit comments

Comments
 (0)