[PATCH] acpi: acpidump: print a message if no ACPI tables could be found.

Colin King colin.king at canonical.com
Fri Dec 7 18:33:36 UTC 2012


From: Colin Ian King <colin.king at canonical.com>

Some systems don't have ACPI tables, so emit a message if non can
be found.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpi/acpidump/acpidump.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
index 435608c..6cbbf85 100644
--- a/src/acpi/acpidump/acpidump.c
+++ b/src/acpi/acpidump/acpidump.c
@@ -1767,6 +1767,10 @@ static int acpidump_test1(fwts_framework *fw)
 		fwts_log_nl(fw);
 	}
 
+	/* Some systems don't have any ACPI tables */
+	if (!i)
+		fwts_log_info(fw, "Cannot find any ACPI tables.");
+
 	return FWTS_OK;
 }
 
-- 
1.8.0




More information about the fwts-devel mailing list