Merge "bootstat: system_boot_reason does not handle reboot_<reason> case" am: 0f058759b0

am: fc3f7ec5c3

Change-Id: Ifb12695091749ada0d8348555b04a85ca3385434
This commit is contained in:
Mark Salyzyn 2017-10-06 18:17:37 +00:00 committed by android-build-merger
commit 5cdd1f590a
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ std::string BootReasonStrToReason(const std::string& boot_reason) {
ret = "reboot";
if (android::base::StartsWith(reason, "reboot")) {
reason = reason.substr(strlen("reboot"));
while (reason[0] == ',') {
while ((reason[0] == ',') || (reason[0] == '_')) {
reason = reason.substr(1);
}
}