From b49b40a470c2a2b81d0b8299f09edded1a037a9f Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Wed, 14 Mar 2007 19:50:07 +0000 Subject: Only enter the debugger on a Fatal op if this is a debug build of the acpi module. Also clean up print of args a little. --- sys/dev/acpica/Osd/OsdDebug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpica/Osd/OsdDebug.c b/sys/dev/acpica/Osd/OsdDebug.c index 4e28a7ca7465..946e875ccd21 100644 --- a/sys/dev/acpica/Osd/OsdDebug.c +++ b/sys/dev/acpica/Osd/OsdDebug.c @@ -78,9 +78,11 @@ AcpiOsSignal(UINT32 Function, void *Info) switch (Function) { case ACPI_SIGNAL_FATAL: fatal = (ACPI_SIGNAL_FATAL_INFO *)Info; - printf("ACPI fatal signal, type 0x%x code 0x%x argument 0x%x", + printf("ACPI fatal signal, type 0x%x code 0x%x argument 0x%x", fatal->Type, fatal->Code, fatal->Argument); +#ifdef ACPI_DEBUG kdb_enter("AcpiOsSignal"); +#endif break; case ACPI_SIGNAL_BREAKPOINT: -- cgit v1.3