diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index b6e65c6ae..5c32e180d 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -140,7 +140,7 @@ constexpr int32_t kUnknownBootReason = 1; // values. const std::map kBootReasonMap = { {"empty", kEmptyBootReason}, - {"unknown", kUnknownBootReason}, + {"__BOOTSTAT_UNKNOWN__", kUnknownBootReason}, {"normal", 2}, {"recovery", 3}, {"reboot", 4}, @@ -200,7 +200,7 @@ const std::map kBootReasonMap = { {"cold", 56}, {"hard", 57}, {"warm", 58}, - {"recovery", 59}, + // {"recovery", 59}, // Duplicate of enum 3 above. Immediate reuse possible. {"thermal-shutdown", 60}, {"shutdown,thermal", 61}, {"shutdown,battery", 62}, @@ -231,7 +231,7 @@ const std::map kBootReasonMap = { {"shutdown,thermal,battery", 87}, {"reboot,its_just_so_hard", 88}, // produced by boot_reason_test {"reboot,Its Just So Hard", 89}, // produced by boot_reason_test - {"usb", 90}, + // {"usb", 90}, // Duplicate of enum 80 above. Immediate reuse possible. {"charge", 91}, {"oem_tz_crash", 92}, {"uvlo", 93},