From 8d7f63da26f342ea4587962e57a0d457673a3a10 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 25 Jul 2017 12:55:12 -0700 Subject: [PATCH] bootstat: Log even more boot reasons. Bug: 27555866 Test: None Change-Id: I8ab6597a323f5973d8b1c22c2c7422ef0c2efcc3 --- bootstat/bootstat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 344fa9aae..bd611f0b9 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -169,6 +169,13 @@ const std::map kBootReasonMap = { {"wdog_bark", 42}, {"wdog_bite", 43}, {"wdog_reset", 44}, + {"shutdown,", 45}, // Trailing comma is intentional. + {"shutdown,userrequested", 46}, + {"reboot,bootloader", 47}, + {"reboot,cold", 48}, + {"reboot,recovery", 49}, + {"thermal_shutdown", 50}, + {"s3_wakeup", 51} }; // Converts a string value representing the reason the system booted to an