Merge "bootstat: system_boot_reason does not handle reboot_<reason> case"
am: 0f058759b0
Change-Id: I455b85ffe3af699d5206a577931f87a2777a5779
This commit is contained in:
commit
fc3f7ec5c3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue