From patchwork Fri Dec 7 18:33:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: acpi: acpidump: print a message if no ACPI tables could be found. Date: Fri, 07 Dec 2012 08:33:36 -0000 From: Colin King X-Patchwork-Id: 204595 Message-Id: <1354905216-29813-1-git-send-email-colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com From: Colin Ian King Some systems don't have ACPI tables, so emit a message if non can be found. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- 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; }