From patchwork Fri Nov 16 08:28:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: utilities: kernelscan.c: add scanning for ACPI_BIOS_ERROR messages Date: Thu, 15 Nov 2012 22:28:45 -0000 From: Colin King X-Patchwork-Id: 199514 Message-Id: <1353054525-4748-1-git-send-email-colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com From: Colin Ian King The ACPI driver has a handful of ACPI_BIOS_ERROR message calls, so add scanning for these too. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- src/utilities/kernelscan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utilities/kernelscan.c b/src/utilities/kernelscan.c index 8a57b82..7b12f83 100644 --- a/src/utilities/kernelscan.c +++ b/src/utilities/kernelscan.c @@ -765,7 +765,8 @@ static int parse_kernel_message(parser *p, token *t) printk = (strcmp(t->token, "printk") == 0); if ((strcmp(t->token, "dev_err") == 0) || - (strcmp(t->token, "ACPI_ERROR") == 0)) + (strcmp(t->token, "ACPI_ERROR") == 0) || + (strcmp(t->token, "ACPI_BIOS_ERROR") == 0)) emit = true; line = strdupcat(line, t->token); @@ -857,7 +858,8 @@ static void parse_kernel_messages(FILE *fp) while ((get_token(&p, &t)) != EOF) { if ((strcmp(t.token, "printk") == 0) || (strcmp(t.token, "dev_err") == 0) || - (strcmp(t.token, "ACPI_ERROR") == 0)) { + (strcmp(t.token, "ACPI_ERROR") == 0) || + (strcmp(t.token, "ACPI_BIOS_ERROR") == 0)) { parse_kernel_message(&p, &t); } else token_clear(&t);