diff mbox series

klog.json: Add more error messages for battery to klog database

Message ID 20240911020935.43413-5-ivan.hu@canonical.com
State Accepted
Headers show
Series klog.json: Add more error messages for battery to klog database | expand

Commit Message

Ivan Hu Sept. 11, 2024, 2:09 a.m. UTC
These messages are specific to the ACPI battery driver.

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

Patch

diff --git a/data/klog.json b/data/klog.json
index 039ded40..26411978 100644
--- a/data/klog.json
+++ b/data/klog.json
@@ -64,6 +64,20 @@ 
    "advice": "The ACPI battery driver has detected that the Battery Information Extended (_BIX) object seems to be broken and has fallen back to using the less modern Battery Information (_BIF) object instead to get battery specific data.",
    "label": "KlogAcpiBixBroken",
   },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "extension failed to load:",
+   "advice": "The ACPI battery driver has to notify the hook that a battery is available for each battery, but the registration of the extension has failed.",
+   "label": "KlogAcpiRegistrationFail",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "error in extension, unloading:",
+   "advice": "The ACPI battery driver adds a new battery to the list and calls add_battery for each hook that was registered, but gets the notification of the extensions has failed.",
+   "label": "KlogAcpiRegistrationFail",
+  },
   {
    "compare_mode": "regex",
    "log_level": "LOG_LEVEL_LOW",