diff options
author | Thomas Renninger <trenn@suse.de> | 2010-05-03 09:30:16 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-05-20 09:46:18 -0400 |
commit | 7715348cbe28da80fd5372fd68748e852a9d8468 (patch) | |
tree | c14585dfe6db5671ae9104aebce8af2c46e6f6fb /drivers/platform/x86 | |
parent | fc3155b2c6419a442c6f8b34a3bf31f8efe0fe33 (diff) |
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: Thomas Renninger <trenn@suse.de>
CC: platform-driver-x86@vger.kernel.org
CC: mjg59@srcf.ucam.org
CC: corentin.chary@gmail.com
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/wmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index e820f4cddb61..f16768db4468 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c | |||
@@ -880,6 +880,7 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event) | |||
880 | struct guid_block *block; | 880 | struct guid_block *block; |
881 | struct wmi_block *wblock; | 881 | struct wmi_block *wblock; |
882 | struct list_head *p; | 882 | struct list_head *p; |
883 | char guid_string[37]; | ||
883 | 884 | ||
884 | list_for_each(p, &wmi_blocks.list) { | 885 | list_for_each(p, &wmi_blocks.list) { |
885 | wblock = list_entry(p, struct wmi_block, list); | 886 | wblock = list_entry(p, struct wmi_block, list); |
@@ -889,6 +890,11 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event) | |||
889 | (block->notify_id == event)) { | 890 | (block->notify_id == event)) { |
890 | if (wblock->handler) | 891 | if (wblock->handler) |
891 | wblock->handler(event, wblock->handler_data); | 892 | wblock->handler(event, wblock->handler_data); |
893 | if (debug_event) { | ||
894 | wmi_gtoa(wblock->gblock.guid, guid_string); | ||
895 | printk(KERN_INFO PREFIX "DEBUG Event GUID:" | ||
896 | " %s\n", guid_string); | ||
897 | } | ||
892 | 898 | ||
893 | acpi_bus_generate_netlink_event( | 899 | acpi_bus_generate_netlink_event( |
894 | device->pnp.device_class, dev_name(&device->dev), | 900 | device->pnp.device_class, dev_name(&device->dev), |