From patchwork Sun Jul 14 18:34:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 13732784 X-Patchwork-Delegate: kuba@kernel.org Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B534F11CB8; Sun, 14 Jul 2024 18:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720982087; cv=none; b=gs4JxXuRTeltTwctAmjNMWt2swnr592laVUDuCb2RvEsBRAFokbxISVeL0sbACHtEJ7qaKsIrgbaIpkNLI+9cefng6Uk3HWASaRzPpxh/gCBDT/ZKuQ1p5Rie9u+UjiFIWubPXlKAUgKXamSSWrGx8JOF21wSz6lonAn4ewt+SQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720982087; c=relaxed/simple; bh=fzuTQnw5lleiRZ0IayazA7aAUaLTTw8Hba3Fc031SME=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=pHl8Q+IMLb0xS8bm9va3NPBqOdQuQuQnEv9acW4rvUTIulhcNNLJ1AfpJdn6CuJDL0o5rhNmGbsIYfEIgBuWYsmvwG2orgEJAufuRbUH0QsxC/+efeVzuMSHiS18JIm44Lwhx0v2NxTLTH137azkNDyB845bGz0uilg5TD3wHDg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=ER5ULhGo; arc=none smtp.client-ip=212.227.15.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="ER5ULhGo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1720982062; x=1721586862; i=markus.elfring@web.de; bh=pchrGxpoglpNRDaqcmRgxlF4ObCukq5qADbq5zjCBSA=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:From: Subject:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=ER5ULhGoqFmdRcs1W2y3+PCmAONsiCQuWq/3GX/vQRFgRy/y+vrC0m5HoSIOk/VT gy59kjHtPQN+7ZxksqTfarxnogs+BL+NsAE5tXJPNYoRugFB9jnsaZaf3RI8liwN1 relmjwqnZTKyaQ8ooAhJIYdn5YeHjPMq8bjwNX+1rRLe3DKtyHUot6ORARrH9les9 I+jOtCPvorBHXMv4nzGbe+2o1ADd9bsDaWafSjjK0fZusjnvGpPl0OZC4XkEHOn+Z lJ3PcGnjh99ux60MyG5nOUMAHoeQGnBMJbgG4LkuI0Hos4haEba8tjaPD/YeuIeII zmbaCwdSJTeEwtYU6w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.82.95]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MQPZd-1sgajP2GwL-00Hexd; Sun, 14 Jul 2024 20:34:22 +0200 Message-ID: Date: Sun, 14 Jul 2024 20:34:14 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, Andreas Gruenbacher , Benjamin Poirier , "David S. Miller" , Eric Dumazet , Gavrilov Ilia , Jakub Kicinski , Kevin Hao , Liang Chen , Paolo Abeni Content-Language: en-GB Cc: LKML From: Markus Elfring Subject: [PATCH] pktgen: Use seq_putc() in pktgen_if_show() X-Provags-ID: V03:K1:XNgmM3OfsFeaWgtKBaXqtNc3yzN5+fv9TV70VVDrlvTZxN3av4T zM1xjub7hn8T+lvTQ/kOLpLnlLhChn7AyFhjqO6pkxP1mhVLbOQnM9H8hE2ChMLGf/Y4xO6 mndUNxBCiSnlhxRFDhSFclA1qbozRyvj8rwde06UfyjnM+Z8JQ5yERUkEKrw9MDxQz+hRm8 3FGQMiWFtoMxfkHShLCQw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:I64haoflU4A=;8hLhysjiM8yWTlDyqwzRHtabkgR Z6wU9OVTmy7v2l36PCKl52yL/6GFgSmLjf87RQLifv71hNFRHdxoVBWE+fws4ykCcvGBWfCIH +8IdcyndHielbs/0MKymc7Bew+KYwneduKrhypfLLkXuTJnYclATG8ah1V3pQeGBHaIwS2i2g jSiUiy9imtQbvmAr9CPiVtJoB+g5fjY3BISVUkdSk07Pxm56hZBbYg/c+DloyKQ1Jp00cyoAQ wZJrIjtBholhr/PPXNl6dCyBdYIHptX1BQjcb0qz4wSX2khz0KJAhadoDMc5InOamCfTAs/MN wm8eN05150A6DY9wrzOJiD/RT3UBCe7UMU54VllKwHxrTqxLpNMl07WCnq+nx+0fRhKJLraVm 21TL4PMbyS1sd2JsZHQUR9C2IJb+yK706eIh3XocEM14GXQeGKf4A5Aw5lA1/pUnwZXGnyntK SRdWT+5n90DSPF8rQEFKn0IjDg+Exc77A9eIpaY1HkeTj8YK5harwP2mBsblR39ycfDpWn3v1 by3Cx1zR+In/dw77oFJA+jr7mSvKtwNYYkW17RuQwVRH67JBF/CkRpdliFeQT+IUP5dJ4iku1 R9iH65TMtHYaZKowXmD/uK+3g7+Jzuw6zSXRgegxzKUTSWcI28L6eJkbdCrINNDZ6IdFS9R5g bIEFDd42rQWJFtKBisxOTMb4cEToBp6iJBTvNNEKhBl73GM20ajLOj1dzdiP0oqH8Im+QViCP hbtgHqK06nnlNTrXhVrGQxWBrRtbkjREiYqOKrNjBxVpqycMmy1ezltEL9o7KcUA1n5voyyIq rir7hVxAndPk+EvmZUcbLq4w== X-Patchwork-Delegate: kuba@kernel.org From: Markus Elfring 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 Reviewed-by: Jiri Pirko --- net/core/pktgen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.45.2 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,