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
This commit is contained in:
Neels Hofmeyr 2023-03-13 16:10:03 +01:00 committed by neels
parent 141dffddf5
commit e1c4f24cb9
1 changed files with 1 additions and 0 deletions

View File

@ -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"