On Sun, 13 Oct 2019, Markus Elfring wrote:

> >    virtual patch
>
> This variable should be omitted if it will not be used in subsequent SmPL 
> rules.

There is no harm to have it.

julia


>
>
> >    @@
> >    expression buf, val;
> >    @@
> >    - snprintf(buf, PAGE_SIZE, "%d\n", val)
> >    + spgprintf_d(buf, val)
> >
> > This works nearly always as expected, but not in some macros.
>
> Do you get any more interesting test results for the following transformation 
> approach?
>
> @replacement@
> @@
> -snprintf
> +spgprintf_d
>  (...,
> -PAGE_SIZE, "%d\n",
>  ...)
>
>
> Regards,
> Markus
> _______________________________________________
> Cocci mailing list
> [email protected]
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to