mirror of
https://github.com/acpica/acpica/
synced 2025-01-23 01:42:04 +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);
|
||||
Instances = AxCountTableInstances (InputPathname, UpperSignature);
|
||||
|
||||
if (Instances < MinimumInstances)
|
||||
if (Instances < MinimumInstances || MinimumInstances == AX_OPTIONAL_TABLES)
|
||||
{
|
||||
printf ("Table [%s] was not found in %s\n",
|
||||
UpperSignature, InputPathname);
|
||||
|
Loading…
Reference in New Issue
Block a user