diff options
Diffstat (limited to 'sys/contrib/dev/acpica/dbfileio.c')
-rw-r--r-- | sys/contrib/dev/acpica/dbfileio.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/contrib/dev/acpica/dbfileio.c b/sys/contrib/dev/acpica/dbfileio.c index f3f45bf..57e430d 100644 --- a/sys/contrib/dev/acpica/dbfileio.c +++ b/sys/contrib/dev/acpica/dbfileio.c @@ -2,7 +2,7 @@ * * Module Name: dbfileio - Debugger file I/O commands. These can't usually * be used when running the debugger in Ring 0 (Kernel mode) - * $Revision: 41 $ + * $Revision: 43 $ * ******************************************************************************/ @@ -311,7 +311,7 @@ AcpiDbLoadTable( /* Allocate a buffer for the table */ *TableLength = TableHeader.Length; - *TablePtr = (ACPI_TABLE_HEADER *) AcpiUtAllocate ((size_t) *TableLength); + *TablePtr = ACPI_MEM_ALLOCATE ((size_t) *TableLength); if (!*TablePtr) { AcpiOsPrintf ("Could not allocate memory for the table (size=%X)\n", TableHeader.Length); @@ -342,7 +342,7 @@ AcpiDbLoadTable( AcpiOsPrintf ("Error - could not read the table file\n"); - AcpiUtFree (*TablePtr); + ACPI_MEM_FREE (*TablePtr); *TablePtr = NULL; *TableLength = 0; @@ -469,12 +469,14 @@ AcpiDbLoadAcpiTable ( AcpiOsPrintf ("Table %4.4s is already installed\n", &TablePtr->Signature); } + else { AcpiOsPrintf ("Could not install table, %s\n", - AcpiUtFormatException (Status)); + AcpiFormatException (Status)); } - AcpiUtFree (TablePtr); + + ACPI_MEM_FREE (TablePtr); return (Status); } |