mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 17:34:43 +03:00
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:
parent
54b4d991c5
commit
97739215dd
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 (
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user