Thread (1 message) 1 message, 1 author, 2023-07-20
DORMANTno replies

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

From: <hidden>
Date: 2023-07-20 07:22:10
Also in: lkml

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 <redacted>
---
  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)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help