[PATCH 1/3] LoongArch: Simplify data output in show_cpuinfo()
Markus Elfring <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,dev.linux.lists.loongarch,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Markus Elfring <[email protected]> Date: Thu, 4 Jun 2026 16:02:59 +0200 Move the specification for a line break from a seq_puts() call to a seq_printf() call. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> --- arch/loongarch/kernel/proc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/loongarch/kernel/proc.c b/arch/loongarch/kernel/proc.c index d4ce5b585453..cc1b7a96bb0f 100644 --- a/arch/loongarch/kernel/proc.c +++ b/arch/loongarch/kernel/proc.c @@ -94,9 +94,8 @@ static int show_cpuinfo(struct seq_file *m, void *v) seq_puts(m, " lbt_arm"); if (cpu_has_lbt_mips) seq_puts(m, " lbt_mips"); - seq_puts(m, "\n"); - seq_printf(m, "Hardware Watchpoint\t: %s", str_yes_no(cpu_has_watch)); + seq_printf(m, "\nHardware Watchpoint\t: %s", str_yes_no(cpu_has_watch)); if (cpu_has_watch) { seq_printf(m, ", iwatch count: %d, dwatch count: %d", cpu_data[n].watch_ireg_count, cpu_data[n].watch_dreg_count); -- 2.54.0