diff options
author | njl <njl@FreeBSD.org> | 2007-03-14 19:56:10 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2007-03-14 19:56:10 +0000 |
commit | db1e4dfa44cc82f146d7cf1f78e7cc1480618ff0 (patch) | |
tree | 5b3fe43965001fb93c53d9d076a55b10ea682857 | |
parent | c16242f92929efa452a0180240f4c52739c850f8 (diff) | |
download | FreeBSD-src-db1e4dfa44cc82f146d7cf1f78e7cc1480618ff0.zip FreeBSD-src-db1e4dfa44cc82f146d7cf1f78e7cc1480618ff0.tar.gz |
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.
This was accidentally committed as 1.9.2.3 in the stable branch. Since it
is harmless, I will let the "insta-MFC" stand unless there is a problem.
-rw-r--r-- | sys/dev/acpica/Osd/OsdDebug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/Osd/OsdDebug.c b/sys/dev/acpica/Osd/OsdDebug.c index 4e28a7c..946e875 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: |