Fix MaskAddresses to support AOSP toybox sed
In MaskAddresses sed is used to preprocess traces. In AOSP switching to use a toybox sed instead of GNU sed for build tools was done. Command line options and regular expressions for GNU sed don't work for the toybox sed causing test failures: 1. Toybox sed does not support '--in-place --regexp-extended'. 2. Toybox sed does not support hexadecimal expressions. The CL changes MaskAddresses to work with toybox sed: 1. Use '-i -E' instead of '--in-place --regexp-extended' because they have the same meaning. GNU sed also supports '-i -E' instead of '--in-place --regexp-extended'. 2. Encode the ESC character directly in the source. As the CL makes some macros redundant the macros are removed. Change-Id: I072e59ed765adff574c8890eb8610799602a1b78
Loading
Please register or sign in to comment