Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[.joined/src/trunk]: .joined/src/sys/dev/acpi acpibat(4): Print ACPI error wh...



details:   https://anonhg.NetBSD.org/.joined/src/rev/a047dd7bbcf5
branches:  trunk
changeset: 359334:a047dd7bbcf5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Dec 31 14:20:56 2021 +0000

description:
acpibat(4): Print ACPI error when _STA fails.

diffstat:

 sys/dev/acpi/acpi_bat.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0811b10ae8cb -r a047dd7bbcf5 sys/dev/acpi/acpi_bat.c
--- a/sys/dev/acpi/acpi_bat.c   Fri Dec 31 14:20:40 2021 +0000
+++ b/sys/dev/acpi/acpi_bat.c   Fri Dec 31 14:20:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_bat.c,v 1.119 2021/12/31 14:20:40 riastradh Exp $ */
+/*     $NetBSD: acpi_bat.c,v 1.120 2021/12/31 14:20:56 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.119 2021/12/31 14:20:40 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.120 2021/12/31 14:20:56 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/condvar.h>
@@ -294,7 +294,8 @@
 
        rv = acpi_eval_integer(sc->sc_node->ad_handle, "_STA", &val);
        if (ACPI_FAILURE(rv)) {
-               aprint_error_dev(dv, "failed to evaluate _STA\n");
+               aprint_error_dev(dv, "failed to evaluate _STA: %s\n",
+                   AcpiFormatException(rv));
                return -1;
        }
 



Home | Main Index | Thread Index | Old Index