From owner-svn-src-all@FreeBSD.ORG Sat Feb 13 05:38:22 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 431F31065679; Sat, 13 Feb 2010 05:38:22 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 34F3D8FC12; Sat, 13 Feb 2010 05:38:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1D5cMsW044374; Sat, 13 Feb 2010 05:38:22 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1D5cMNh044372; Sat, 13 Feb 2010 05:38:22 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201002130538.o1D5cMNh044372@svn.freebsd.org> From: Jung-uk Kim Date: Sat, 13 Feb 2010 05:38:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203813 - head/sys/dev/acpica X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2010 05:38:22 -0000 Author: jkim Date: Sat Feb 13 05:38:21 2010 New Revision: 203813 URL: http://svn.freebsd.org/changeset/base/203813 Log: Make sanity check slightly more useful and tweak an error message. Modified: head/sys/dev/acpica/acpi_video.c Modified: head/sys/dev/acpica/acpi_video.c ============================================================================== --- head/sys/dev/acpica/acpi_video.c Sat Feb 13 02:36:00 2010 (r203812) +++ head/sys/dev/acpica/acpi_video.c Sat Feb 13 05:38:21 2010 (r203813) @@ -645,7 +645,7 @@ acpi_video_vo_notify_handler(ACPI_HANDLE 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 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 } } 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); }