Skip to content

Commit 751b3d8

Browse files
tobluxgeertu
authored andcommitted
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>
1 parent 2014c95 commit 751b3d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/m68k/sun3/mmu_emu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/bitops.h>
1818
#include <linux/module.h>
1919
#include <linux/sched/mm.h>
20+
#include <linux/string_choices.h>
2021

2122
#include <asm/setup.h>
2223
#include <asm/traps.h>
@@ -371,7 +372,7 @@ int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault)
371372

372373
#ifdef DEBUG_MMU_EMU
373374
pr_info("%s: vaddr=%lx type=%s crp=%p\n", __func__, vaddr,
374-
read_flag ? "read" : "write", crp);
375+
str_read_write(read_flag), crp);
375376
#endif
376377

377378
segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;

0 commit comments

Comments
 (0)