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
- Re: [Cocci] Adjusting macros with SmP... Markus Elfring
- Re: [Cocci] Adjusting macros with SmP... Markus Elfring
- Re: [Cocci] Adjusting macros with... Julia Lawall
- Re: [Cocci] Adjusting macros with... Markus Elfring
- Re: [Cocci] Adjusting macros with... Markus Elfring
- Re: [Cocci] macro parameters and expressions? Julia Lawall
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Jürgen Groß
- Re: [Cocci] macro parameters and expressio... Julia Lawall
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Julia Lawall
- Re: [Cocci] Checking the influence of “virtual” Sm... Markus Elfring
- Re: [Cocci] Checking the influence of “virtual... Julia Lawall
- Re: [Cocci] Checking the influence of “vir... Markus Elfring
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Markus Elfring
- Re: [Cocci] macro parameters and expressions? Julia Lawall
- Re: [Cocci] macro parameters and expressions? Markus Elfring
