bcl: Enable Instruction print in bugreport am: a545f963b3 am: 425ff9eb06

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15463754

Change-Id: Id64201550a02edd8f57490c83c284d58560ec6a5
This commit is contained in:
George Lee 2021-08-05 21:17:29 +00:00 committed by Automerger Merge Worker
commit 039cc96c97

View file

@ -458,6 +458,11 @@ void DumpstateDevice::dumpPowerSection(int fd) {
"do lvl=`cat $f`; "
"a=${f/\\/sys\\/devices\\/virtual\\/pmic\\/mitigation\\/triggered_lvl\\//}; "
"echo \"${a/_lvl/} \\t$lvl\" ; done"});
RunCommandToFd(fd, "Instruction", {"/vendor/bin/sh", "-c",
"for f in `ls /sys/devices/virtual/pmic/mitigation/instruction/*` ; "
"do val=`cat $f` ; "
"a=${f/\\/sys\\/devices\\/virtual\\/pmic\\/mitigation\\/instruction\\//}; "
"echo \"$a=$val\" ; done"});
}