]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Replace seq_printf() with seq_puts() for simple strings
authorGeorge Guo <dongtai.guo@linux.dev>
Tue, 10 Feb 2026 11:31:12 +0000 (19:31 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 10 Feb 2026 11:31:12 +0000 (19:31 +0800)
commit52c1dbf4cb8e9c1df2a911bc8938efaeff51dfbb
tree702c1157fdd1266408596fdad0c4dd57a44910ed
parentf0e4b1b6e295299f5c9c79ad546dedbdf7132f45
LoongArch: Replace seq_printf() with seq_puts() for simple strings

Fix warnings like: "Prefer seq_puts to seq_printf" by checkpatch.pl.

Replace seq_printf() calls with seq_puts() in show_cpuinfo() when
outputting simple constant strings without format specifiers.

This improves performance slightly as seq_puts() avoids parsing the
format string.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/proc.c