mirror of
https://github.com/acpica/acpica/
synced 2025-02-09 01:54:44 +03:00
acpixtract: don't abort AxExtractTables for AX_OPTIONAL_TABLES
Otherwise this makes the utility return an error for invocations like "acpixtract <FILE>", where FILE contains a DSDT but no SSDTs. Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
This commit is contained in:
parent
361891b007
commit
ad5755dd80
@ -213,7 +213,7 @@ AxExtractTables (
|
|||||||
AxNormalizeSignature (UpperSignature);
|
AxNormalizeSignature (UpperSignature);
|
||||||
Instances = AxCountTableInstances (InputPathname, UpperSignature);
|
Instances = AxCountTableInstances (InputPathname, UpperSignature);
|
||||||
|
|
||||||
if (Instances < MinimumInstances)
|
if (Instances < MinimumInstances || MinimumInstances == AX_OPTIONAL_TABLES)
|
||||||
{
|
{
|
||||||
printf ("Table [%s] was not found in %s\n",
|
printf ("Table [%s] was not found in %s\n",
|
||||||
UpperSignature, InputPathname);
|
UpperSignature, InputPathname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user