aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-02-13 05:38:21 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-02-13 05:38:21 +0000
commitf29d6f75fa602e2b4ce000619af35f4244a271eb (patch)
treeeaa8ba8661e1748372c96d312e08ac38e3a63f88
parentf67f8ffd430745c1c250c22498427a8f0e0d2ee0 (diff)
downloadsrc-f29d6f75fa602e2b4ce000619af35f4244a271eb.tar.gz
src-f29d6f75fa602e2b4ce000619af35f4244a271eb.zip
Make sanity check slightly more useful and tweak an error message.
Notes
Notes: svn path=/head/; revision=203813
-rw-r--r--sys/dev/acpica/acpi_video.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_video.c b/sys/dev/acpica/acpi_video.c
index ada6b1e5e93c..614fa3d8bd19 100644
--- a/sys/dev/acpica/acpi_video.c
+++ b/sys/dev/acpica/acpi_video.c
@@ -645,7 +645,7 @@ acpi_video_vo_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
vo = context;
ACPI_SERIAL_BEGIN(video_output);
- if (vo->handle == NULL) {
+ if (vo->handle != handle) {
ACPI_SERIAL_END(video_output);
return;
}
@@ -655,7 +655,7 @@ acpi_video_vo_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
case VID_NOTIFY_DEC_BRN:
if (vo->vo_levels == NULL)
break;
- level = vo_get_brightness(vo->handle);
+ level = vo_get_brightness(handle);
if (level < 0)
break;
new_level = level;
@@ -672,13 +672,13 @@ acpi_video_vo_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
}
}
if (new_level != level) {
- vo_set_brightness(vo->handle, new_level);
+ vo_set_brightness(handle, new_level);
vo->vo_brightness = new_level;
}
break;
default:
- printf("%s: unknown notify event 0x%x\n",
- acpi_name(vo->handle), notify);
+ printf("unknown notify event 0x%x from %s\n",
+ notify, acpi_name(handle));
}
ACPI_SERIAL_END(video_output);
}