diff mbox series

klog.json: Add some missing battery kernel messages to klog database

Message ID 20231030051545.29245-1-ivan.hu@canonical.com
State Accepted
Headers show
Series klog.json: Add some missing battery kernel messages to klog database | expand

Commit Message

Ivan Hu Oct. 30, 2023, 5:15 a.m. UTC
These messages are specific to the ACPI battery driver.

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 data/klog.json | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/data/klog.json b/data/klog.json
index 9e6bd9d7..5cdae30c 100644
--- a/data/klog.json
+++ b/data/klog.json
@@ -1051,6 +1051,13 @@ 
    "advice": "The ACPI Battery Status (_BST) object is returning an invalid dischar or charge rate.  This can be either a negative 16 bit value or reporting 0 as 65536 because of an invalid calculation in the DSDT. The Linux ACPI battery driver has detected this firmware bug and attempted to work around it.",
    "label": "KlogAcpiBstInvalidRate"
   },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "(dis)charge rate invalid",
+   "advice": "The ACPI Battery Status (_BST) object is returning an invalid dischar or charge rate.  This can be either a negative 16 bit value or reporting 0 as 65536 because of an invalid calculation in the DSDT. The Linux ACPI battery driver has detected this firmware bug and attempted to work around it.",
+   "label": "KlogAcpiBstInvalidRate"
+  },
   {
    "compare_mode": "string",
    "log_level": "LOG_LEVEL_HIGH",