pktgen: Use seq_putc() in pktgen_if_show()
Subsystems (3)
PATCH 1/1 pktgen: Use seq_putc() in pktgen_if_show()
From: Markus Elfring <[email protected]>
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 <[email protected]>
--- net/core/pktgen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
net/core/pktgen.c +3 -3
@@ -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
Quoted 9 lines · Sun, Jul 14, 2024 at 08:34:14PM CEST, [email protected] wrote:
From: Markus Elfring <[email protected]>
Date: Sun, 14 Jul 2024 20:23:49 +0200Single 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 <[email protected]>
Reviewed-by Jiri Pirko <[email protected]>