Improved error messages

date	2003.12.03.18.39.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:52:05 +00:00
parent 93281456ed
commit a217c8df77

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: hwacpi - ACPI Hardware Initialization/Mode Interface
* $Revision: 1.64 $
* $Revision: 1.65 $
*
*****************************************************************************/
@ -196,7 +196,7 @@ AcpiHwSetMode (
*/
if (!AcpiGbl_FADT->SmiCmd)
{
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "No SMI_CMD in FADT, mode transition failed.\n"));
ACPI_REPORT_ERROR (("No SMI_CMD in FADT, mode transition failed.\n"));
return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE);
}
@ -209,7 +209,7 @@ AcpiHwSetMode (
*/
if (!AcpiGbl_FADT->AcpiEnable && !AcpiGbl_FADT->AcpiDisable)
{
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "No mode transition supported in this system.\n"));
ACPI_REPORT_ERROR (("No ACPI mode transition supported in this system (enable/disable both zero)\n"));
return_ACPI_STATUS (AE_OK);
}
@ -242,6 +242,7 @@ AcpiHwSetMode (
if (ACPI_FAILURE (Status))
{
ACPI_REPORT_ERROR (("Could not write mode change, %s\n", AcpiFormatException (Status)));
return_ACPI_STATUS (Status);
}
@ -252,19 +253,17 @@ AcpiHwSetMode (
Retry = 3000;
while (Retry)
{
Status = AE_NO_HARDWARE_RESPONSE;
if (AcpiHwGetMode() == Mode)
{
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Mode %X successfully enabled\n", Mode));
Status = AE_OK;
break;
return_ACPI_STATUS (AE_OK);
}
AcpiOsStall(1000);
Retry--;
}
return_ACPI_STATUS (Status);
ACPI_REPORT_ERROR (("Hardware never changed modes\n"));
return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE);
}