commit | 0f058759b037d714f29caf3185e3f40a14cee84d | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Oct 06 18:07:55 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Oct 06 18:07:55 2017 +0000 |
tree | 14149d44d3502e83e23dac7f0f721f657c1dcfed | |
parent | 283ca30651a124bf98bbdd7939d53f32d9653399 [diff] | |
parent | 0af71a53278677648315b7413f725526f7606852 [diff] |
Merge "bootstat: system_boot_reason does not handle reboot_<reason> case"
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); } }