From: Frantisek Sumsal Date: Sun, 4 Oct 2020 09:31:51 +0000 (+0200) Subject: coccinelle: skip the xsprintf transformation on man pages X-Git-Tag: v247-rc1~130^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb60571b31597441286d0dbde0ce179069bd45c5;p=thirdparty%2Fsystemd.git coccinelle: skip the xsprintf transformation on man pages since we don't expose xsprintf to users. --- diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci index 401216ad728..660a35e3f4d 100644 --- a/coccinelle/xsprintf.cocci +++ b/coccinelle/xsprintf.cocci @@ -1,6 +1,7 @@ @@ +position p : script:python() { not p[0].file.startswith("man/") }; expression e, fmt; expression list vaargs; @@ -- snprintf(e, sizeof(e), fmt, vaargs); +- snprintf@p(e, sizeof(e), fmt, vaargs); + xsprintf(e, fmt, vaargs);