diff options
-rw-r--r-- | bootstat/bootstat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index da1e9d82f..07d410c91 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -477,8 +477,10 @@ std::string BootReasonStrToReason(const std::string& boot_reason) { if (subReason != "") { // Will not land "reboot" as that is too blunt. if (isKernelRebootReason(subReason)) { ret = "reboot," + subReason; // User space can't talk kernel reasons. - } else { + } else if (isKnownRebootReason(subReason)) { ret = subReason; + } else { + ret = "reboot," + subReason; // legitimize unknown reasons } } } |