Skip to contentSkip to conversation

m68k/atari: Use str_on_off() helper in atari_nvram_proc_read()

PATCH RESEND New Thorsten Blum 1 participant 1 message Dec 20, 2024 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 m68k/atari: Use str_on_off() helper in atari_nvram_proc_read()

Remove hard-coded strings by using the str_on_off() helper function.

---
 arch/m68k/atari/nvram.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/m68k/atari/nvram.c +2 -2
index 7000d2443aa3..da490392e994 100644
@@ -198,7 +198,7 @@ static void atari_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
 		seq_printf(seq, "0x%02x (undefined)\n", nvram[1]);
 
 	seq_printf(seq, "SCSI arbitration : %s\n",
-		   (nvram[16] & 0x80) ? "on" : "off");
+		   str_on_off(nvram[16] & 0x80));
 	seq_puts(seq, "SCSI host ID     : ");
 	if (nvram[16] & 0x80)
 		seq_printf(seq, "%d\n", nvram[16] & 7);
@@ -236,7 +236,7 @@ static void atari_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
 		   vmode & 16 ? "VGA" : "TV", vmode & 32 ? "PAL" : "NTSC");
 	seq_printf(seq,
 		   "                   %soverscan, compat. mode %s%s\n",
-		   vmode & 64 ? "" : "no ", vmode & 128 ? "on" : "off",
+		   vmode & 64 ? "" : "no ", str_on_off(vmode & 128),
 		   vmode & 256 ?
 		   (vmode & 16 ? ", line doubling" : ", half screen") : "");
 }
Signature · 1 line
2.47.1