From 34073b583a76c214e3e356fa9080f9ae3c5e2ac8 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 17 Oct 2017 15:53:27 -0700 Subject: [PATCH] bootstat: Add more boot reasons found by logging in the wild. Bug: none Test: none Change-Id: I7e388326be44aeb3e6fdb79d2e173dc17eb8bc1f --- bootstat/bootstat.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index f8eaa1cd3..2095fb8b5 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -212,6 +212,17 @@ const std::map kBootReasonMap = { {"hard,hw_reset", 72}, {"shutdown,suspend", 73}, // Suspend to RAM {"shutdown,hibernate", 74}, // Suspend to DISK + {"power_on_key", 75}, + {"reboot_by_key", 76}, + {"wdt_by_pass_pwk", 77}, + {"reboot_longkey", 78}, + {"powerkey", 79}, + {"usb", 80}, + {"wdt", 81}, + {"tool_by_pass_pwk", 82}, + {"2sec_reboot", 83}, + {"reboot,by_key", 84}, + {"reboot,longkey", 85}, }; // Converts a string value representing the reason the system booted to an