Module Name: src
Committed By: pgoyette
Date: Thu Feb 18 13:52:33 UTC 2010
Modified Files:
src/sys/dev/acpi: aiboost.c
Log Message:
Enhance DPRINTF to use AcpiFormatException as suggested in PR kern/40130
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/acpi/aiboost.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/aiboost.c
diff -u src/sys/dev/acpi/aiboost.c:1.27 src/sys/dev/acpi/aiboost.c:1.28
--- src/sys/dev/acpi/aiboost.c:1.27 Wed Sep 16 10:47:54 2009
+++ src/sys/dev/acpi/aiboost.c Thu Feb 18 13:52:33 2010
@@ -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;