Re: Improving output for single characters (with SmPL)?
Markus Elfring <[email protected]> Sat, 1 Aug 2026 10:10:40 +0200
| Newsgroups | gmane.linux.kernel.janitors,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
>> Which implementation details should be reconsidered here for an affecte= d macro? >> https://elixir.bootlin.com/linux/v7.2-rc4/source/tools/bpf/bpftool/netl= ink_dumper.h#L25 >=20 > The shown source code transformation approach can be repeated on demand > for selected areas. I would like to add that only a single diff hunk is generated for the foll= owing script variant of the semantic patch language (as it would usually be expected for the me= ntioned software component). @replacement@ @@ -fprintf +putchar ( -stdout, "\n" +'\n' ) > Now I wonder about the following information. >=20 > Markus_Elfring@Sonne:/home/altes_Heim2/elfring/Projekte/Linux/next-analy= ses> grep 'diff -u -p a/netlink_dumper.h b/netlink_dumper.h' /home/altes_H= eim2/elfring/Projekte/Bau/Linux/scripts/Coccinelle/tuning1/next/20260721/u= se_fputc-bpftool-2.diff | wc -l > 2 How can the generation of duplicate difference output be avoided here for other SmPL script variations? Regards, Markus