Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202432
b: refs/heads/master
c: a2806c6
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Renninger authored and Matthew Garrett committed Aug 3, 2010
1 parent ac3e125 commit d5b0ba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da9a79ba5873b0f1d4dc7711ea6a96be6b69341e
refs/heads/master: a2806c6f00d851f11ef8725d78739d48a1ca2fe9
10 changes: 6 additions & 4 deletions trunk/drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
#define HPWMI_WIRELESS_QUERY 0x5
#define HPWMI_HOTKEY_QUERY 0xc

#define PREFIX "HP WMI: "

enum hp_wmi_radio {
HPWMI_WIFI = 0,
HPWMI_BLUETOOTH = 1,
Expand Down Expand Up @@ -349,14 +351,14 @@ static void hp_wmi_notify(u32 value, void *context)

status = wmi_get_event_data(value, &response);
if (status != AE_OK) {
printk(KERN_INFO "hp-wmi: bad event status 0x%x\n", status);
printk(KERN_INFO PREFIX "bad event status 0x%x\n", status);
return;
}

obj = (union acpi_object *)response.pointer;

if (!obj || obj->type != ACPI_TYPE_BUFFER || obj->buffer.length != 8) {
printk(KERN_INFO "HP WMI: Unknown response received\n");
printk(KERN_INFO PREFIX "Unknown response received\n");
kfree(obj);
return;
}
Expand Down Expand Up @@ -387,7 +389,7 @@ static void hp_wmi_notify(u32 value, void *context)
break;
}
} else
printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n",
printk(KERN_INFO PREFIX "Unknown key code - 0x%x\n",
key_code);
break;
case HPWMI_WIRELESS:
Expand All @@ -405,7 +407,7 @@ static void hp_wmi_notify(u32 value, void *context)
hp_wmi_get_hw_state(HPWMI_WWAN));
break;
default:
printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n",
printk(KERN_INFO PREFIX "Unknown eventcode - %d\n",
eventcode);
break;
}
Expand Down

0 comments on commit d5b0ba3

Please sign in to comment.