mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
m68k: sun3: Use str_read_write() helper in mmu_emu_handle_fault()
Remove hard-coded strings by using the str_read_write() helper. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/20250117120605.126941-2-thorsten.blum@linux.dev Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
2014c95afe
commit
751b3d8d88
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/bitops.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/sched/mm.h>
|
||||
#include <linux/string_choices.h>
|
||||
|
||||
#include <asm/setup.h>
|
||||
#include <asm/traps.h>
|
||||
|
|
@ -371,7 +372,7 @@ int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault)
|
|||
|
||||
#ifdef DEBUG_MMU_EMU
|
||||
pr_info("%s: vaddr=%lx type=%s crp=%p\n", __func__, vaddr,
|
||||
read_flag ? "read" : "write", crp);
|
||||
str_read_write(read_flag), crp);
|
||||
#endif
|
||||
|
||||
segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user