summaryrefslogtreecommitdiffstats
path: root/source/components/debugger/dbfileio.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-05-19 05:44:32 +0000
committerjkim <jkim@FreeBSD.org>2012-05-19 05:44:32 +0000
commit291c27508808bb5c9ab780eb971fe958491f1468 (patch)
tree83fbd480537714dcce335edc4aed3216f4e57816 /source/components/debugger/dbfileio.c
parenteb364ef2c90291c41e896d265d93fe21e48d02a7 (diff)
downloadFreeBSD-src-291c27508808bb5c9ab780eb971fe958491f1468.zip
FreeBSD-src-291c27508808bb5c9ab780eb971fe958491f1468.tar.gz
Import ACPICA 20120518.
Diffstat (limited to 'source/components/debugger/dbfileio.c')
-rw-r--r--source/components/debugger/dbfileio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c
index ef9b7fe..9845ff4 100644
--- a/source/components/debugger/dbfileio.c
+++ b/source/components/debugger/dbfileio.c
@@ -51,6 +51,10 @@
#include "actables.h"
#endif
+#ifdef ACPI_ASL_COMPILER
+#include "aslcompiler.h"
+#endif
+
#if (defined ACPI_DEBUGGER || defined ACPI_DISASSEMBLER)
#define _COMPONENT ACPI_CA_DEBUGGER
@@ -309,6 +313,15 @@ AcpiDbReadTable (
AcpiOsPrintf (
"TableHeader length [0x%X] greater than the input file size [0x%X]\n",
TableHeader.Length, FileSize);
+
+#ifdef ACPI_ASL_COMPILER
+ Status = FlCheckForAscii (fp, NULL, FALSE);
+ if (ACPI_SUCCESS (Status))
+ {
+ AcpiOsPrintf ("File appears to be ASCII only, must be binary\n",
+ TableHeader.Length, FileSize);
+ }
+#endif
return (AE_BAD_HEADER);
}
OpenPOWER on IntegriCloud