Loading bootstat/bootstat.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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", ""}, }; Loading Loading
bootstat/bootstat.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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", ""}, }; Loading