* [PATCH] bpf: Simplify character output in seq_print_delegate_opts()
@ 2024-07-15 9:20 Markus Elfring
2024-07-19 17:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2024-07-15 9:20 UTC (permalink / raw)
To: bpf, kernel-janitors, Alexei Starovoitov, Andrii Nakryiko,
Christophe Jaillet, Daniel Borkmann, Eduard Zingerman, Hao Luo,
Jiri Olsa, John Fastabend, KP Singh, Martin KaFai Lau, Song Liu,
Stanislav Fomichev, Yonghong Song
Cc: LKML
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 15 Jul 2024 11:12:30 +0200
Single characters should be put into a sequence.
Thus use the corresponding function “seq_putc” for two selected calls.
This issue was transformed by using the Coccinelle software.
Suggested-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
kernel/bpf/inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c
index af5d2ffadd70..d8fc5eba529d 100644
--- a/kernel/bpf/inode.c
+++ b/kernel/bpf/inode.c
@@ -709,10 +709,10 @@ static void seq_print_delegate_opts(struct seq_file *m,
msk = 1ULL << e->val;
if (delegate_msk & msk) {
/* emit lower-case name without prefix */
- seq_printf(m, "%c", first ? '=' : ':');
+ seq_putc(m, first ? '=' : ':');
name += pfx_len;
while (*name) {
- seq_printf(m, "%c", tolower(*name));
+ seq_putc(m, tolower(*name));
name++;
}
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] bpf: Simplify character output in seq_print_delegate_opts()
2024-07-15 9:20 [PATCH] bpf: Simplify character output in seq_print_delegate_opts() Markus Elfring
@ 2024-07-19 17:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-19 17:40 UTC (permalink / raw)
To: Markus Elfring
Cc: bpf, kernel-janitors, ast, andrii, christophe.jaillet, daniel,
eddyz87, haoluo, jolsa, john.fastabend, kpsingh, martin.lau, song,
sdf, yonghong.song, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Mon, 15 Jul 2024 11:20:27 +0200 you wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Mon, 15 Jul 2024 11:12:30 +0200
>
> Single characters should be put into a sequence.
> Thus use the corresponding function “seq_putc” for two selected calls.
>
> This issue was transformed by using the Coccinelle software.
>
> [...]
Here is the summary with links:
- bpf: Simplify character output in seq_print_delegate_opts()
https://git.kernel.org/bpf/bpf-next/c/51f1bb929647
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-19 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 9:20 [PATCH] bpf: Simplify character output in seq_print_delegate_opts() Markus Elfring
2024-07-19 17:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox