diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-03-13 16:10:03 +0100 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2023-03-14 20:12:57 +0000 |
commit | e1c4f24cb91e82966de24e81febb75e9815f98bb (patch) | |
tree | 9bf3b0ba306ee8395962a30897a851751496203a | |
parent | fix 'make vty-test' for --disable-external-tests --enable-gb (diff) | |
download | libosmocore-e1c4f24cb91e82966de24e81febb75e9815f98bb.tar.xz libosmocore-e1c4f24cb91e82966de24e81febb75e9815f98bb.zip |
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
-rwxr-xr-x | contrib/talloc_count.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/talloc_count.sh b/contrib/talloc_count.sh index 3b035854..61aa3f57 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" |