mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: kernel-janitors@vger.kernel.org, Joel Granados <j.granados@samsung.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] latencytop: Use seq_putc() in lstats_show()
Date: Sun, 14 Jul 2024 12:00:23 +0200	[thread overview]
Message-ID: <19c77c4d-7f81-4980-a124-d6a8e14675d9@web.de> (raw)

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 14 Jul 2024 11:52:13 +0200

A single line break should be put into a sequence.
Thus use the corresponding function “seq_putc”.

This issue was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 kernel/latencytop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/latencytop.c b/kernel/latencytop.c
index 84c53285f499..09e5231598ae 100644
--- a/kernel/latencytop.c
+++ b/kernel/latencytop.c
@@ -260,7 +260,7 @@ static int lstats_show(struct seq_file *m, void *v)

 				seq_printf(m, " %ps", (void *)bt);
 			}
-			seq_puts(m, "\n");
+			seq_putc(m, '\n');
 		}
 	}
 	return 0;
--
2.45.2


             reply	other threads:[~2024-07-14 10:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20240714100031eucas1p16b701d3e5852ccb40305a73bdb2a2759@eucas1p1.samsung.com>
2024-07-14 10:00 ` Markus Elfring [this message]
2024-07-16 15:45   ` Joel Granados
2024-07-16 17:06     ` Markus Elfring
2024-07-17  7:00       ` Joel Granados

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19c77c4d-7f81-4980-a124-d6a8e14675d9@web.de \
    --to=markus.elfring@web.de \
    --cc=j.granados@samsung.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®