mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
MIPS: kernel: proc: Use seq_putc() calls in show_cpuinfo()
Single characters should occasionally be put into a sequence. Thus use the corresponding function “seq_putc”. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
98e37db4a3
commit
8998c0904c
|
|
@ -79,7 +79,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|||
for (i = 0; i < cpu_data[n].watch_reg_count; i++)
|
||||
seq_printf(m, "%s0x%04x", i ? ", " : "",
|
||||
cpu_data[n].watch_reg_masks[i]);
|
||||
seq_puts(m, "]");
|
||||
seq_putc(m, ']');
|
||||
}
|
||||
|
||||
seq_puts(m, "\nisa\t\t\t:");
|
||||
|
|
@ -150,7 +150,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|||
seq_puts(m, " loongson-ext");
|
||||
if (cpu_has_loongson_ext2)
|
||||
seq_puts(m, " loongson-ext2");
|
||||
seq_puts(m, "\n");
|
||||
seq_putc(m, '\n');
|
||||
|
||||
if (cpu_has_mmips) {
|
||||
seq_printf(m, "micromips kernel\t: %s\n",
|
||||
|
|
@ -301,7 +301,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|||
raw_notifier_call_chain(&proc_cpuinfo_chain, 0,
|
||||
&proc_cpuinfo_notifier_args);
|
||||
|
||||
seq_puts(m, "\n");
|
||||
seq_putc(m, '\n');
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user