[PATCH v6] coccinelle: misc: Add field_modify script
Luo Jie
quic_luoj at quicinc.com
Thu Jun 26 21:33:15 PDT 2025
On 6/26/2025 3:43 PM, Markus Elfring wrote:
>> +coccilib.report.print_report(p[0], "WARNING: Consider using FIELD_MODIFY helper on %s" % (x))
>
> Would you find it a bit nicer to use also another formatted string literal
> as a function call parameter?
> (The recent code adjustment indicated something for the operation mode “org”.)
> https://docs.python.org/3/reference/lexical_analysis.html#f-strings
>
> Regards,
> Markus
Sure, I agree that using a formatted string literal as a function call
parameter will make the code cleaner. I will update the function call
as shown below in the next revision.
coccilib.report.print_report(p[0], f"WARNING: Consider using
FIELD_MODIFY helper on {x}")
More information about the linux-arm-kernel
mailing list