Skip to contentSkip to conversation

Using seq_puts() more often?

cocci Markus Elfring 1 participant 1 message Jun 5, 2023

lore
Share & tools
lore
#0 lore raw

Hello,

I tried the following SmPL script out also on the source files from the software “Linux next-20230605”.

@replacement@
constant string;
expression context;
@@
-seq_printf
+seq_puts
(context,
string
)

708 source code places were found where a more appropriate function call can be applied.
https://elixir.bootlin.com/linux/v6.4-rc4/source/fs/seq_file.c#L672

Will any more developers (besides me) get into the mood to pick corresponding change possibilities up?

Regards,
Markus