Better error message on method failure

date	2001.11.06.21.09.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:14:44 +00:00
parent f3046053b6
commit 5503084854

View File

@ -1,7 +1,7 @@
/****************************************************************************** /******************************************************************************
* *
* Module Name: psxface - Parser external interfaces * Module Name: psxface - Parser external interfaces
* $Revision: 1.52 $ * $Revision: 1.54 $
* *
*****************************************************************************/ *****************************************************************************/
@ -220,7 +220,7 @@ AcpiPsxExecute (
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
} }
Status = AcpiDsInitAmlWalk (WalkState, Op, MethodNode, ObjDesc->Method.AmlStart, Status = AcpiDsInitAmlWalk (WalkState, Op, MethodNode, ObjDesc->Method.AmlStart,
ObjDesc->Method.AmlLength, NULL, NULL, 1); ObjDesc->Method.AmlLength, NULL, NULL, 1);
if (ACPI_FAILURE (Status)) if (ACPI_FAILURE (Status))
{ {
@ -263,7 +263,7 @@ AcpiPsxExecute (
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
} }
Status = AcpiDsInitAmlWalk (WalkState, Op, MethodNode, ObjDesc->Method.AmlStart, Status = AcpiDsInitAmlWalk (WalkState, Op, MethodNode, ObjDesc->Method.AmlStart,
ObjDesc->Method.AmlLength, Params, ReturnObjDesc, 3); ObjDesc->Method.AmlLength, Params, ReturnObjDesc, 3);
if (ACPI_FAILURE (Status)) if (ACPI_FAILURE (Status))
{ {
@ -287,14 +287,15 @@ AcpiPsxExecute (
} }
} }
/* Now check status from the method execution */
if (ACPI_FAILURE (Status)) if (ACPI_FAILURE (Status))
{ {
DUMP_PATHNAME (MethodNode, "PsExecute: method failed -", REPORT_ERROR (("Method execution failed, %s\n", AcpiFormatException (Status)));
DUMP_PATHNAME (MethodNode, "Method pathname and nodeq: ",
ACPI_LV_ERROR, _COMPONENT); ACPI_LV_ERROR, _COMPONENT);
} }
/* /*
* If the method has returned an object, signal this to the caller with * If the method has returned an object, signal this to the caller with
* a control exception code * a control exception code
@ -308,7 +309,6 @@ AcpiPsxExecute (
Status = AE_CTRL_RETURN_VALUE; Status = AE_CTRL_RETURN_VALUE;
} }
return_ACPI_STATUS (Status); return_ACPI_STATUS (Status);
} }