Commit 7715348c authored by Thomas Renninger's avatar Thomas Renninger Committed by Matthew Garrett

X86 platform wmi: Also log GUID string when an event happens and debug is set

Output in log with debug=1:
ACPI: WMI: DEBUG Event INTEGER_TYPE - 65535
ACPI: WMI: DEBUG Event GUID: CC1A61AC-4256-41A3-B9E0-05A445ADE2F5
Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
CC: platform-driver-x86@vger.kernel.org
CC: mjg59@srcf.ucam.org
CC: corentin.chary@gmail.com
Signed-off-by: default avatarCarlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent fc3155b2
...@@ -880,6 +880,7 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event) ...@@ -880,6 +880,7 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event)
struct guid_block *block; struct guid_block *block;
struct wmi_block *wblock; struct wmi_block *wblock;
struct list_head *p; struct list_head *p;
char guid_string[37];
list_for_each(p, &wmi_blocks.list) { list_for_each(p, &wmi_blocks.list) {
wblock = list_entry(p, struct wmi_block, list); wblock = list_entry(p, struct wmi_block, list);
...@@ -889,6 +890,11 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event) ...@@ -889,6 +890,11 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event)
(block->notify_id == event)) { (block->notify_id == event)) {
if (wblock->handler) if (wblock->handler)
wblock->handler(event, wblock->handler_data); wblock->handler(event, wblock->handler_data);
if (debug_event) {
wmi_gtoa(wblock->gblock.guid, guid_string);
printk(KERN_INFO PREFIX "DEBUG Event GUID:"
" %s\n", guid_string);
}
acpi_bus_generate_netlink_event( acpi_bus_generate_netlink_event(
device->pnp.device_class, dev_name(&device->dev), device->pnp.device_class, dev_name(&device->dev),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment