From a904b442af1bc31c1f96f610c727f1d3ff7b940f Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Sun, 15 Jan 2012 10:43:44 +0100 Subject: [PATCH] Add debug message in case no ACPI handle is found --- bbswitch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bbswitch.c b/bbswitch.c index 7d69dee..9ad81de 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -336,8 +336,11 @@ static int __init bbswitch_init(void) { acpi_handle handle; handle = DEVICE_ACPI_HANDLE(&pdev->dev); - if (!handle) + if (!handle) { + printk(KERN_WARNING "bbswitch: cannot find ACPI handle for VGA" + " device %s\n", dev_name(&pdev->dev)); continue; + } acpi_get_name(handle, ACPI_FULL_PATHNAME, &buf);