Thread (8 messages) flat view 8 messages, 6 authors, 7d ago

Re: [PATCH] tools: Use fputc() calls in some functions

From: Segher Boessenkool <hidden>
Date: 2026-07-23 15:17:09
Also in: bpf, kernel-janitors, kvm, linux-acpi, linux-gpio, linux-kselftest, linux-mm, linux-perf-users, linux-pm, linux-trace-kernel, lkml, mptcp, netdev, platform-driver-x86, virtualization

On Thu, Jul 23, 2026 at 06:47:00AM -0700, Andi Kleen wrote:
On Thu, Jul 23, 2026 at 12:25:25PM +0200, Markus Elfring wrote:
quoted
From: Markus Elfring <redacted>
Date: Thu, 23 Jul 2026 11:13:30 +0200
Subject: [PATCH] tools: Use fputc() calls in some functions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Single characters should occasionally be transferred into the output.
Thus use the corresponding function “fputc” (or even “putchar”).

The source code was transformed by using the Coccinelle software.
gcc already does this transformation automatically.
Yup.  And the printf() form is much more regular, expected, readable.
The primary consumers of source code are human beings, all programs
should be written with that in mind!


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help