summaryrefslogtreecommitdiffstats
path: root/bootstat
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-10-23 13:52:39 -0700
committerMark Salyzyn <salyzyn@google.com>2017-10-25 15:45:49 -0700
commitcabbe4ff356973e457db063c92920c98f69a1922 (patch)
treee9675ac425603ca86e9a590be945de9411e4017a /bootstat
parent2a8e5cce338b7f3b81d90df68853e8a120a867bd (diff)
downloadcore-cabbe4ff356973e457db063c92920c98f69a1922.tar.gz
core-cabbe4ff356973e457db063c92920c98f69a1922.tar.bz2
core-cabbe4ff356973e457db063c92920c98f69a1922.zip
bootstat: add reboot,2sec
Test: system/core/bootreason/boot_reason_test.sh Bug: 63736262 Change-Id: Ie2e5872adb14e0979ff87eb4d2f57ab2849facd4
Diffstat (limited to 'bootstat')
-rw-r--r--bootstat/bootstat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp
index 22701339d..d1fe9c743 100644
--- a/bootstat/bootstat.cpp
+++ b/bootstat/bootstat.cpp
@@ -223,6 +223,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
{"2sec_reboot", 83},
{"reboot,by_key", 84},
{"reboot,longkey", 85},
+ {"reboot,2sec", 86},
};
// Converts a string value representing the reason the system booted to an
@@ -406,6 +407,7 @@ std::string BootReasonStrToReason(const std::string& boot_reason) {
{"shutdown,thermal", "thermal"},
{"warm,s3_wakeup", "s3_wakeup"},
{"hard,hw_reset", "hw_reset"},
+ {"reboot,2sec", "2sec_reboot"},
{"bootloader", ""},
};