Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Enhance DPRINTF to use AcpiFormatException as s...



details:   https://anonhg.NetBSD.org/src/rev/ee1cef192e60
branches:  trunk
changeset: 752187:ee1cef192e60
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Feb 18 13:52:33 2010 +0000

description:
Enhance DPRINTF to use AcpiFormatException as suggested in PR kern/40130

diffstat:

 sys/dev/acpi/aiboost.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r e7f0eed4df44 -r ee1cef192e60 sys/dev/acpi/aiboost.c
--- a/sys/dev/acpi/aiboost.c    Thu Feb 18 13:51:45 2010 +0000
+++ b/sys/dev/acpi/aiboost.c    Thu Feb 18 13:52:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aiboost.c,v 1.27 2009/09/16 10:47:54 mlelstv Exp $ */
+/* $NetBSD: aiboost.c,v 1.28 2010/02/18 13:52:33 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.27 2009/09/16 10:47:54 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.28 2010/02/18 13:52:33 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -320,13 +320,15 @@
 
        status = AcpiGetHandle(h, name, &h1);
        if (ACPI_FAILURE(status)) {
-               DPRINTF(("%s: AcpiGetHandle\n", __func__));
+               DPRINTF(("%s: AcpiGetHandle: %s\n", __func__,
+                       AcpiFormatException(status) ));
                return status;
        }
 
        status = acpi_eval_struct(h1, NULL, &buf);
        if (ACPI_FAILURE(status)) {
-               DPRINTF(("%s: acpi_eval_struct\n", __func__));
+               DPRINTF(("%s: acpi_eval_struct: %s\n", __func__,
+                       AcpiFormatException(status) ));
                return status;
        }
 
@@ -378,8 +380,8 @@
                        c->elem[i].h = elem->Reference.Handle;
                        status = acpi_eval_struct(c->elem[i].h, NULL, &buf2);
                        if (ACPI_FAILURE(status)) {
-                               DPRINTF(("%s: fetching object in buf2\n",
-                                   __func__));
+                               DPRINTF(("%s: fetching object in buf2: %s\n",
+                                   __func__, AcpiFormatException(status) ));
                                goto error;
                        }
                        subobj = buf2.Pointer;



Home | Main Index | Thread Index | Old Index