diff options
Diffstat (limited to 'sys/contrib/dev/acpica/dbexec.c')
-rw-r--r-- | sys/contrib/dev/acpica/dbexec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/dbexec.c b/sys/contrib/dev/acpica/dbexec.c index e2176ec..ddb8eb0 100644 --- a/sys/contrib/dev/acpica/dbexec.c +++ b/sys/contrib/dev/acpica/dbexec.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: dbexec - debugger control method execution - * $Revision: 41 $ + * $Revision: 42 $ * ******************************************************************************/ @@ -322,6 +322,9 @@ AcpiDbExecute ( AcpiGbl_DbMethodInfo.Args = Args; AcpiGbl_DbMethodInfo.Flags = Flags; + ReturnObj.Pointer = NULL; + ReturnObj.Length = ACPI_ALLOCATE_BUFFER; + AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo); Status = AcpiDbExecuteMethod (&AcpiGbl_DbMethodInfo, &ReturnObj); @@ -363,6 +366,11 @@ AcpiDbExecute ( AcpiGbl_DbMethodInfo.Pathname, ReturnObj.Pointer, ReturnObj.Length); AcpiDbDumpObject (ReturnObj.Pointer, 1); } + else + { + AcpiOsPrintf ("No return object from execution of %s\n", + AcpiGbl_DbMethodInfo.Pathname); + } } AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); |