summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/proc.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-08-20 16:39:11 +0200
committerRalf Baechle <ralf@linux-mips.org>2012-10-11 11:10:43 +0200
commit981ef0de49869c9a60e9b1ff35a734525dd790e0 (patch)
treefe59a62bc980b132474ab2d3d697a4ea206f29b9 /arch/mips/kernel/proc.c
parentMIPS: Hardwire detection of DSP ASE Rev 2 for systems, as required. (diff)
downloadlinux-981ef0de49869c9a60e9b1ff35a734525dd790e0.tar.xz
linux-981ef0de49869c9a60e9b1ff35a734525dd790e0.zip
MIPS: proc: Cleanup printing of ASEs.
The number of %s was just getting ridiculous. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/proc.c')
-rw-r--r--arch/mips/kernel/proc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 35cf2094f9ae..07dff54f2ce8 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -64,15 +64,17 @@ static int show_cpuinfo(struct seq_file *m, void *v)
cpu_data[n].watch_reg_masks[i]);
seq_printf(m, "]\n");
}
- seq_printf(m, "ASEs implemented\t:%s%s%s%s%s%s\n",
- cpu_has_mips16 ? " mips16" : "",
- cpu_has_mdmx ? " mdmx" : "",
- cpu_has_mips3d ? " mips3d" : "",
- cpu_has_smartmips ? " smartmips" : "",
- cpu_has_dsp ? " dsp" : "",
- cpu_has_dsp2 ? " dsp2" : "",
- cpu_has_mipsmt ? " mt" : ""
- );
+
+ seq_printf(m, "ASEs implemented\t:");
+ if (cpu_has_mips16) seq_printf(m, "%s", " mips16");
+ if (cpu_has_mdmx) seq_printf(m, "%s", " mdmx");
+ if (cpu_has_mips3d) seq_printf(m, "%s", " mips3d");
+ if (cpu_has_smartmips) seq_printf(m, "%s", " smartmips");
+ if (cpu_has_dsp) seq_printf(m, "%s", " dsp");
+ if (cpu_has_dsp2) seq_printf(m, "%s", " dsp2");
+ if (cpu_has_mipsmt) seq_printf(m, "%s", " mt");
+ seq_printf(m, "\n");
+
seq_printf(m, "shadow register sets\t: %d\n",
cpu_data[n].srsets);
seq_printf(m, "kscratch registers\t: %d\n",