From e1c4f24cb91e82966de24e81febb75e9815f98bb Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 13 Mar 2023 16:10:03 +0100 Subject: [PATCH] contrib/talloc_count.sh: improve hexadecimal masking Also mask hexadecimal without leading 0x. But take care to not match on every letter a-f,A-F in normal words and names. before: 10 map_rua(NffffNfNecN-example-com-RUA-N)[N] 10 map_sccp(NffffNfNecN-example-com-SCCP-N)[N] 17 map_rua(NffffNcN-example-com-RUA-N)[N] 17 map_sccp(NffffNcN-example-com-SCCP-N)[N] 18 map_rua(NffffNeNbN-example-com-RUA-N)[N] 18 map_sccp(NffffNeNbN-example-com-SCCP-N)[N] 82 map_rua(NffffNfNdN-example-com-RUA-N)[N] 82 map_sccp(NffffNfNdN-example-com-SCCP-N)[N] 85 map_rua(NffffNfN-example-com-RUA-N)[N] 85 map_sccp(NffffNfN-example-com-SCCP-N)[N] 224 struct hnbgw_context_map after: 224 map_rua(N-example-com-RUA-N)[N] 224 map_sccp(N-example-com-SCCP-N)[N] 224 struct hnbgw_context_map Change-Id: I1b42ce3e67c7ed2d38d3e5c9cbfa90ba185a07b7 --- contrib/talloc_count.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/talloc_count.sh b/contrib/talloc_count.sh index 3b035854a..61aa3f578 100755 --- a/contrib/talloc_count.sh +++ b/contrib/talloc_count.sh @@ -35,6 +35,7 @@ grep contains "$f" \ | grep -v '^$' \ | grep -v '^[0-9]\+$' \ | sed 's/0x[0-9a-fA-F]\+/N/g' \ + | sed 's/\<[0-9a-fA-F]\+\>/N/g' \ | sed 's/[0-9]\+/N/g' \ | sort \ > "$mangled"