Message ID | 20210727205115.325019-1-alex.hung@canonical.com |
---|---|
State | Superseded |
Headers | show |
Series | acpi: dmar: add a warning when PCI device is not found | expand |
On 7/28/21 4:51 AM, Alex Hung wrote: > Signed-off-by: Alex Hung <alex.hung@canonical.com> > --- > src/acpi/dmar/dmar.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c > index af9ee277..0f652106 100644 > --- a/src/acpi/dmar/dmar.c > +++ b/src/acpi/dmar/dmar.c > @@ -166,8 +166,10 @@ static int acpi_parse_one_dev_scope(fwts_framework *fw, > goto error; > dev_type = read_pci_device_secondary_bus_number(seg, bus, > path->dev, path->fn, &sec_bus); > - if (dev_type < 0) /* no such device */ > + if (dev_type < 0) { /* no such device */ > + fwts_warning(fw, "PCI device is not found."); > goto error; > + } > path++; > count--; > bus = sec_bus; > Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c index af9ee277..0f652106 100644 --- a/src/acpi/dmar/dmar.c +++ b/src/acpi/dmar/dmar.c @@ -166,8 +166,10 @@ static int acpi_parse_one_dev_scope(fwts_framework *fw, goto error; dev_type = read_pci_device_secondary_bus_number(seg, bus, path->dev, path->fn, &sec_bus); - if (dev_type < 0) /* no such device */ + if (dev_type < 0) { /* no such device */ + fwts_warning(fw, "PCI device is not found."); goto error; + } path++; count--; bus = sec_bus;
Signed-off-by: Alex Hung <alex.hung@canonical.com> --- src/acpi/dmar/dmar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)