2023-07-20 07:34:14

by hanyu001

[permalink] [raw]
Subject: [PATCH] embedded6xx: holly: use seq_puts instead of seq_printf

Fix checkpatch WARNINGS:

/platforms/embedded6xx/holly.c:199: WARNING: Prefer seq_puts to
seq_printf
/platforms/embedded6xx/holly.c:200: WARNING: Prefer seq_puts to
seq_printf

Signed-off-by: Yu Han <[email protected]>
---
arch/powerpc/platforms/embedded6xx/holly.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/embedded6xx/holly.c
b/arch/powerpc/platforms/embedded6xx/holly.c
index 02ff260ae1ee..11820d0d22c4 100644
--- a/arch/powerpc/platforms/embedded6xx/holly.c
+++ b/arch/powerpc/platforms/embedded6xx/holly.c
@@ -196,8 +196,8 @@ static void __init holly_init_IRQ(void)

static void holly_show_cpuinfo(struct seq_file *m)
{
- seq_printf(m, "vendor\t\t: IBM\n");
- seq_printf(m, "machine\t\t: PPC750 GX/CL\n");
+ seq_puts(m, "vendor\t\t: IBM\n");
+ seq_puts(m, "machine\t\t: PPC750 GX/CL\n");
}

static void __noreturn holly_restart(char *cmd)