[PATCH] acpi: dmar: add a warning when PCI device is not found
Alex Hung
alex.hung at canonical.com
Tue Jul 27 20:51:15 UTC 2021
Signed-off-by: Alex Hung <alex.hung at 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;
--
2.32.0
More information about the fwts-devel
mailing list