mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 17:34:43 +03:00
Use internal FormatException
date 2000.03.24.16.44.00; author rmoore1; state Exp;
This commit is contained in:
parent
1a841f3091
commit
daa4f5512c
@ -316,6 +316,7 @@ AcpiFormatException (
|
||||
ACPI_BUFFER *OutBuffer)
|
||||
{
|
||||
UINT32 Length;
|
||||
char *FormattedException;
|
||||
|
||||
|
||||
FUNCTION_TRACE ("AcpiFormatException");
|
||||
@ -339,12 +340,15 @@ AcpiFormatException (
|
||||
}
|
||||
|
||||
|
||||
/* Convert the exception code */
|
||||
|
||||
FormattedException = CmFormatException (Exception);
|
||||
|
||||
/*
|
||||
* Get length of string and check if it will fit in caller's buffer
|
||||
*/
|
||||
|
||||
Length = STRLEN (Gbl_ExceptionNames [Exception]);
|
||||
|
||||
Length = STRLEN (FormattedException);
|
||||
if (OutBuffer->Length < Length)
|
||||
{
|
||||
OutBuffer->Length = Length;
|
||||
@ -354,7 +358,7 @@ AcpiFormatException (
|
||||
|
||||
/* Copy the string, all done */
|
||||
|
||||
STRCPY (OutBuffer->Pointer, Gbl_ExceptionNames [Exception]);
|
||||
STRCPY (OutBuffer->Pointer, FormattedException);
|
||||
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user