[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2401211159350.3743@hadrien>
Date: Sun, 21 Jan 2024 12:00:00 +0100 (CET)
From: Julia Lawall <julia.lawall@...ia.fr>
To: Markus Elfring <Markus.Elfring@....de>
cc: Li Zhijian <lizhijian@...itsu.com>, cocci@...ia.fr,
LKML <linux-kernel@...r.kernel.org>, Nicolas Palix <nicolas.palix@...g.fr>
Subject: Re: [cocci] [v2] coccinelle: device_attr_show: Adapt to the latest
Documentation/filesystems/sysfs.rst
On Sun, 21 Jan 2024, Markus Elfring wrote:
> > I subsequently simplified the patch case to contain the following:
> >
> > - snprintf(BUF, SZ, FORMAT
> > + sysfs_emit(BUF, FORMAT
> > ,...);
> >
> > This also works for the case where there are only three arguments.
> > It has the benefit that the change is recognized as a line replacement, so
> > no extra {} are added when the call is in an if branch.
>
> Would you like to consider the application of the following SmPL code variant?
>
> -snprintf
> +sysfs_emit
> (BUF,
> - SZ,
> FORMAT,
> ...
> );
It's ok too.
julia
>
> Regards,
> Markus
>
Powered by blists - more mailing lists