From owner-cvs-all@FreeBSD.ORG Mon Jun 7 21:39:16 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BB3F16A4CE; Mon, 7 Jun 2004 21:39:16 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4004143D58; Mon, 7 Jun 2004 21:39:16 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i57LdGHu034492; Mon, 7 Jun 2004 21:39:16 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i57LdGw2034491; Mon, 7 Jun 2004 21:39:16 GMT (envelope-from njl) Message-Id: <200406072139.i57LdGw2034491@repoman.freebsd.org> From: Nate Lawson Date: Mon, 7 Jun 2004 21:39:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_pci.c acpi_powerres.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 21:39:16 -0000 njl 2004-06-07 21:39:16 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_pci.c acpi_powerres.c Log: Avoid printing extraneous warning messages when trying to switch a device which doesn't support ACPI power states. Return AE_NOT_FOUND for these cases and don't print the warning message. Also, print the name of the handle instead of device when unable to switch states. The device is often not attached at this point and so its name is NULL, which doesn't help debugging. Revision Changes Path 1.17 +6 -9 src/sys/dev/acpica/acpi_pci.c 1.23 +11 -8 src/sys/dev/acpica/acpi_powerres.c