Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1338ccce authored by Yifan Hong's avatar Yifan Hong
Browse files

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
parent 79babbde
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment