diff options
author | Thomas Renninger <trenn@suse.de> | 2010-05-21 10:18:11 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:48:41 -0400 |
commit | a2806c6f00d851f11ef8725d78739d48a1ca2fe9 (patch) | |
tree | b32bc8119923b49f82006dadb3374dbbc223710b /drivers/platform/x86/hp-wmi.c | |
parent | da9a79ba5873b0f1d4dc7711ea6a96be6b69341e (diff) |
x86 platform drivers: hp-wmi Use consistent prefix string for messages.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
Diffstat (limited to 'drivers/platform/x86/hp-wmi.c')
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 7b086ddf7b2d..e04715abca20 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -52,6 +52,8 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4"); | |||
52 | #define HPWMI_WIRELESS_QUERY 0x5 | 52 | #define HPWMI_WIRELESS_QUERY 0x5 |
53 | #define HPWMI_HOTKEY_QUERY 0xc | 53 | #define HPWMI_HOTKEY_QUERY 0xc |
54 | 54 | ||
55 | #define PREFIX "HP WMI: " | ||
56 | |||
55 | enum hp_wmi_radio { | 57 | enum hp_wmi_radio { |
56 | HPWMI_WIFI = 0, | 58 | HPWMI_WIFI = 0, |
57 | HPWMI_BLUETOOTH = 1, | 59 | HPWMI_BLUETOOTH = 1, |
@@ -349,14 +351,14 @@ static void hp_wmi_notify(u32 value, void *context) | |||
349 | 351 | ||
350 | status = wmi_get_event_data(value, &response); | 352 | status = wmi_get_event_data(value, &response); |
351 | if (status != AE_OK) { | 353 | if (status != AE_OK) { |
352 | printk(KERN_INFO "hp-wmi: bad event status 0x%x\n", status); | 354 | printk(KERN_INFO PREFIX "bad event status 0x%x\n", status); |
353 | return; | 355 | return; |
354 | } | 356 | } |
355 | 357 | ||
356 | obj = (union acpi_object *)response.pointer; | 358 | obj = (union acpi_object *)response.pointer; |
357 | 359 | ||
358 | if (!obj || obj->type != ACPI_TYPE_BUFFER || obj->buffer.length != 8) { | 360 | if (!obj || obj->type != ACPI_TYPE_BUFFER || obj->buffer.length != 8) { |
359 | printk(KERN_INFO "HP WMI: Unknown response received\n"); | 361 | printk(KERN_INFO PREFIX "Unknown response received\n"); |
360 | kfree(obj); | 362 | kfree(obj); |
361 | return; | 363 | return; |
362 | } | 364 | } |
@@ -387,7 +389,7 @@ static void hp_wmi_notify(u32 value, void *context) | |||
387 | break; | 389 | break; |
388 | } | 390 | } |
389 | } else | 391 | } else |
390 | printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n", | 392 | printk(KERN_INFO PREFIX "Unknown key code - 0x%x\n", |
391 | key_code); | 393 | key_code); |
392 | break; | 394 | break; |
393 | case HPWMI_WIRELESS: | 395 | case HPWMI_WIRELESS: |
@@ -405,7 +407,7 @@ static void hp_wmi_notify(u32 value, void *context) | |||
405 | hp_wmi_get_hw_state(HPWMI_WWAN)); | 407 | hp_wmi_get_hw_state(HPWMI_WWAN)); |
406 | break; | 408 | break; |
407 | default: | 409 | default: |
408 | printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n", | 410 | printk(KERN_INFO PREFIX "Unknown eventcode - %d\n", |
409 | eventcode); | 411 | eventcode); |
410 | break; | 412 | break; |
411 | } | 413 | } |