commit | 1338ccced33a09e8eab2d479173394d8a5cf70e6 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Apr 02 16:11:09 2018 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Apr 02 16:15:37 2018 -0700 |
tree | 7e4c6dfe7a3fb1209cc07161d9e2f61db37c108b | |
parent | 79babbde0aad952ca908d2054060951930382c9a [diff] |
lshal: strip ending \0 from cmdline /proc/{pid}/cmdline contains trailing null characters, and `lshal -m` prints them. These trailing null characters are visible when the output is redirected to an output file or to `less`. It also make the output less "greppable" because grep thinks the output is in binary format. Test: adb shell lshal -m | less Test: adb shell lshal -m | grep system_server Change-Id: I622cba887604e5f578daa7cedddd9cdfeb304069