Dump first 10 non-ascii bytes

date	2003.09.22.17.27.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 15:43:52 +00:00
parent 6d4dc8ca50
commit 4426f1fc3b

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: aslcompile - top level compile module
* $Revision: 1.70 $
* $Revision: 1.71 $
*
*****************************************************************************/
@ -313,7 +313,8 @@ FlCheckForAscii (
ASL_FILE_INFO *FileInfo)
{
UINT8 Byte;
UINT32 BadBytes = 0;
ACPI_SIZE BadBytes = 0;
ACPI_SIZE Offset = 0;
/* Read the entire file */
@ -324,8 +325,13 @@ FlCheckForAscii (
if (!isascii (Byte))
{
if (BadBytes < 10)
{
AcpiOsPrintf ("Non-ASCII character: 0x%2.2X at offset 0x%X\n", Byte, Offset);
}
BadBytes++;
}
Offset++;
}
/* Were there any non-ASCII characters in the file? */