[PATCH] embedded6xx: holly: use seq_puts instead of seq_printf

hanyu001 at 208suo.com hanyu001 at 208suo.com
Thu Jul 20 17:22:01 AEST 2023


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 <hanyu001 at 208suo.com>
---
  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)


More information about the Linuxppc-dev mailing list