commit | c4bdb18a9df17a59ab7c6aef16aba4f74843cd38 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Oct 06 20:12:53 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Oct 06 20:12:53 2017 +0000 |
tree | 6e7b55700c779849303adabb8420a34d88db5f17 | |
parent | 30d8c7ed68ca40dca7572a7428a2577df1be153c [diff] | |
parent | e1cbcf439f7ce7bc287b6a4cb6eda27d6e568459 [diff] |
Merge "init: use ro.init.subcontexts_enabled to enable subcontexts"
diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 17986b9..d26cf85 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp
@@ -570,7 +570,7 @@ 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); } }