[PATCH] cocci: simplify check for trivial format strings

2018-02-01 Thread René Scharfe
353d84c537 (coccicheck: make transformation for strbuf_addf(sb, "...") more precise) added a check to avoid transforming calls with format strings which contain percent signs, as that would change the result. It uses embedded Python code for that. Simplify this rule by using the regular expression

Re: [PATCH] cocci: simplify check for trivial format strings

2018-02-02 Thread SZEDER Gábor
On Thu, Feb 1, 2018 at 7:56 PM, René Scharfe wrote: > 353d84c537 (coccicheck: make transformation for strbuf_addf(sb, "...") > more precise) added a check to avoid transforming calls with format > strings which contain percent signs, as that would change the result. > It uses embedded Python code

Re: [PATCH] cocci: simplify check for trivial format strings

2018-02-02 Thread René Scharfe
Am 02.02.2018 um 15:34 schrieb SZEDER Gábor: > On Thu, Feb 1, 2018 at 7:56 PM, René Scharfe wrote: >> 353d84c537 (coccicheck: make transformation for strbuf_addf(sb, "...") >> more precise) added a check to avoid transforming calls with format >> strings which contain percent signs, as that would