summaryrefslogtreecommitdiff
path: root/source/components/debugger/dbfileio.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
commit31aa864e8c068201d58aad3a8f82ddb51df11015 (patch)
tree5e268c18ae0fa3ec73e13e2af60a3be57d8393ec /source/components/debugger/dbfileio.c
parentebef5c959a0ea58fa05c4a5a80bb93104780bf87 (diff)
Notes
Diffstat (limited to 'source/components/debugger/dbfileio.c')
-rw-r--r--source/components/debugger/dbfileio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c
index 9845ff47e68fe..7b0870d1c9910 100644
--- a/source/components/debugger/dbfileio.c
+++ b/source/components/debugger/dbfileio.c
@@ -328,9 +328,9 @@ AcpiDbReadTable (
#ifdef ACPI_OBSOLETE_CODE
/* We only support a limited number of table types */
- if (ACPI_STRNCMP ((char *) TableHeader.Signature, DSDT_SIG, 4) &&
- ACPI_STRNCMP ((char *) TableHeader.Signature, PSDT_SIG, 4) &&
- ACPI_STRNCMP ((char *) TableHeader.Signature, SSDT_SIG, 4))
+ if (!ACPI_COMPARE_NAME ((char *) TableHeader.Signature, ACPI_SIG_DSDT) &&
+ !ACPI_COMPARE_NAME ((char *) TableHeader.Signature, ACPI_SIG_PSDT) &&
+ !ACPI_COMPARE_NAME ((char *) TableHeader.Signature, ACPI_SIG_SSDT))
{
AcpiOsPrintf ("Table signature [%4.4s] is invalid or not supported\n",
(char *) TableHeader.Signature);
@@ -588,4 +588,3 @@ AcpiDbGetTableFromFile (
}
#endif /* ACPI_DEBUGGER */
-