projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40384c8
)
nios2: Use str_yes_no() helper in show_cpuinfo()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Mon, 9 Dec 2024 11:06:39 +0000
(12:06 +0100)
committer
Dinh Nguyen
<dinguyen@kernel.org>
Tue, 17 Dec 2024 00:41:58 +0000
(18:41 -0600)
Remove hard-coded strings by using the str_yes_no() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/nios2/kernel/cpuinfo.c
patch
|
blob
|
history
diff --git
a/arch/nios2/kernel/cpuinfo.c
b/arch/nios2/kernel/cpuinfo.c
index
338849c
..
7b1e8f9
100644
(file)
--- a/
arch/nios2/kernel/cpuinfo.c
+++ b/
arch/nios2/kernel/cpuinfo.c
@@
-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",