]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/xsprintf.cocci
cryptsetup: mention correct action in log message
[thirdparty/systemd.git] / coccinelle / xsprintf.cocci
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @@
3 position p : script:python() { not p[0].file.startswith("man/") };
4 expression e, fmt;
5 expression list vaargs;
6 @@
7 - snprintf@p(e, sizeof(e), fmt, vaargs);
8 + xsprintf(e, fmt, vaargs);