Use internal FormatException

date	2000.03.24.16.44.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:22:35 +00:00
parent 1a841f3091
commit daa4f5512c

View File

@ -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);
}