Skip to content

Commit

Permalink
x86 platform drivers: hp-wmi Catch and log unkown event and key codes…
Browse files Browse the repository at this point in the history
… correctly

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
  • Loading branch information
Thomas Renninger authored and Matthew Garrett committed Aug 3, 2010
1 parent 751ae80 commit da9a79b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ static void hp_wmi_notify(u32 value, void *context)
input_sync(hp_wmi_input_dev);
break;
}
}
} else
printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n",
key_code);
break;
case HPWMI_WIRELESS:
if (wifi_rfkill)
Expand All @@ -403,8 +405,8 @@ static void hp_wmi_notify(u32 value, void *context)
hp_wmi_get_hw_state(HPWMI_WWAN));
break;
default:
printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
eventcode);
printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n",
eventcode);
break;
}
}
Expand Down

0 comments on commit da9a79b

Please sign in to comment.