diff options
Diffstat (limited to 'source/components/utilities')
-rw-r--r-- | source/components/utilities/uteval.c | 8 | ||||
-rw-r--r-- | source/components/utilities/utstring.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/source/components/utilities/uteval.c b/source/components/utilities/uteval.c index e24f2a2..472bd30 100644 --- a/source/components/utilities/uteval.c +++ b/source/components/utilities/uteval.c @@ -260,7 +260,8 @@ AcpiUtEvaluateNumericObject ( * RETURN: Status * * DESCRIPTION: Executes _STA for selected device and stores results in - * *Flags. + * *Flags. If _STA does not exist, then the device is assumed + * to be present/functional/enabled (as per the ACPI spec). * * NOTE: Internal function, no parameter validation * @@ -284,6 +285,11 @@ AcpiUtExecute_STA ( { if (AE_NOT_FOUND == Status) { + /* + * if _STA does not exist, then (as per the ACPI specification), + * the returned flags will indicate that the device is present, + * functional, and enabled. + */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "_STA on %4.4s was not found, assuming device is present\n", AcpiUtGetNodeName (DeviceNode))); diff --git a/source/components/utilities/utstring.c b/source/components/utilities/utstring.c index 9e58908..9798700 100644 --- a/source/components/utilities/utstring.c +++ b/source/components/utilities/utstring.c @@ -395,7 +395,8 @@ ErrorExit: * FUNCTION: AcpiUtPrintString * * PARAMETERS: String - Null terminated ASCII string - * MaxLength - Maximum output length + * MaxLength - Maximum output length. Used to constrain the + * length of strings during debug output only. * * RETURN: None * @@ -407,7 +408,7 @@ ErrorExit: void AcpiUtPrintString ( char *String, - UINT8 MaxLength) + UINT16 MaxLength) { UINT32 i; |