iASL: Improve error messages for auto-disassembly

cleanup error messages when attempting to determine if an
input file is ASCII or binary (compile or disassemble).
This commit is contained in:
Robert Moore 2017-03-23 12:55:10 -07:00
parent 54b4d991c5
commit 97739215dd
3 changed files with 8 additions and 2 deletions

View File

@ -531,8 +531,6 @@ AcValidateTableHeader (
if (!AcpiUtValidNameseg (TableHeader.Signature))
{
fprintf (stderr, "Invalid table signature: 0x%8.8X\n",
*ACPI_CAST_PTR (UINT32, TableHeader.Signature));
return (AE_BAD_SIGNATURE);
}

View File

@ -285,6 +285,9 @@ FlIsFileAsciiSource (
if (BadBytes)
{
fprintf (stderr,
"File appears to be binary: found %u non-ASCII characters, disassembling\n",
BadBytes);
if (DisplayErrors)
{
AcpiOsPrintf (

View File

@ -316,6 +316,11 @@ AslDetectSourceFileType (
Type = ASL_INPUT_TYPE_BINARY_ACPI_TABLE;
goto Cleanup;
}
else
{
fprintf (stderr,
"Binary file does not contain a valid ACPI table\n");
}
Type = ASL_INPUT_TYPE_BINARY;