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

Commit 65412762 authored by Mark Salyzyn's avatar Mark Salyzyn Committed by android-build-merger
Browse files

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

Merge "bootstat: system_boot_reason does not handle reboot_<reason> case" am: 0f058759 am: fc3f7ec5
am: 5cdd1f59

Change-Id: I82730962752cfcb4ba1b6ec54e342b19e9c56ad9
parents b0ea03e3 5cdd1f59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
      }
    }