[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cc21bbb8-e6d3-4670-9d39-f5db0f27f8ce@web.de>
Date: Sun, 14 Jul 2024 20:34:14 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
Andreas Gruenbacher <agruenba@...hat.com>,
Benjamin Poirier <bpoirier@...dia.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Gavrilov Ilia <Ilia.Gavrilov@...otecs.ru>, Jakub Kicinski <kuba@...nel.org>,
Kevin Hao <haokexin@...il.com>, Liang Chen <liangchen.linux@...il.com>,
Paolo Abeni <pabeni@...hat.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] pktgen: Use seq_putc() in pktgen_if_show()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 14 Jul 2024 20:23:49 +0200
Single line breaks 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@...rs.sourceforge.net>
---
net/core/pktgen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index ea55a758a475..441e058d6726 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -577,7 +577,7 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
pkt_dev->imix_entries[i].size,
pkt_dev->imix_entries[i].weight);
}
- seq_puts(seq, "\n");
+ seq_putc(seq, '\n');
}
seq_printf(seq,
@@ -685,7 +685,7 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
}
}
- seq_puts(seq, "\n");
+ seq_putc(seq, '\n');
/* not really stopped, more like last-running-at */
stopped = pkt_dev->running ? ktime_get() : pkt_dev->stopped_at;
@@ -706,7 +706,7 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
pkt_dev->imix_entries[i].size,
pkt_dev->imix_entries[i].count_so_far);
}
- seq_puts(seq, "\n");
+ seq_putc(seq, '\n');
}
seq_printf(seq,
--
2.45.2
Powered by blists - more mailing lists