Commit 0efbca0f authored by Thorsten Blum's avatar Thorsten Blum Committed by Dinh Nguyen
Browse files

nios2: Use str_yes_no() helper in show_cpuinfo()



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

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
parent 40384c84
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -143,11 +143,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
		   " DIV:\t\t%s\n"
		   " BMX:\t\t%s\n"
		   " CDX:\t\t%s\n",
		   cpuinfo.has_mul ? "yes" : "no",
		   cpuinfo.has_mulx ? "yes" : "no",
		   cpuinfo.has_div ? "yes" : "no",
		   cpuinfo.has_bmx ? "yes" : "no",
		   cpuinfo.has_cdx ? "yes" : "no");
		   str_yes_no(cpuinfo.has_mul),
		   str_yes_no(cpuinfo.has_mulx),
		   str_yes_no(cpuinfo.has_div),
		   str_yes_no(cpuinfo.has_bmx),
		   str_yes_no(cpuinfo.has_cdx));

	seq_printf(m,
		   "Icache:\t\t%ukB, line length: %u\n",