Patchwork utilities: kernelscan.c: add scanning for ACPI_EXCEPTION messages

login
register
mail settings
Submitter Colin King
Date Nov. 20, 2012, 11:13 a.m.
Message ID <1353409987-28975-1-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/200296/
State Accepted
Headers show

Comments

Colin King - Nov. 20, 2012, 11:13 a.m.
From: Colin Ian King <colin.king@canonical.com>

The ACPI driver has about 90 ACPI_EXCEPTION message calls, so
add scanning for these too.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/utilities/kernelscan.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Alex Hung - Nov. 22, 2012, 2:42 a.m.
On 11/20/2012 07:13 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The ACPI driver has about 90 ACPI_EXCEPTION message calls, so
> add scanning for these too.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   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 d966f03..5630306 100644
> --- a/src/utilities/kernelscan.c
> +++ b/src/utilities/kernelscan.c
> @@ -766,7 +766,8 @@ static int parse_kernel_message(parser *p, token *t)
>
>   	if ((strcmp(t->token, "dev_err") == 0) ||
>   	    (strcmp(t->token, "ACPI_ERROR") == 0) ||
> -	    (strcmp(t->token, "ACPI_BIOS_ERROR") == 0))
> +	    (strcmp(t->token, "ACPI_BIOS_ERROR") == 0) ||
> +	    (strcmp(t->token, "ACPI_EXCEPTION") == 0))
>   		emit = true;
>
>   	line = strdupcat(line, t->token);
> @@ -859,7 +860,8 @@ static void parse_kernel_messages(FILE *fp)
>   		if ((strcmp(t.token, "printk") == 0) ||
>   		    (strcmp(t.token, "dev_err") == 0) ||
>   		    (strcmp(t.token, "ACPI_ERROR") == 0) ||
> -		    (strcmp(t.token, "ACPI_BIOS_ERROR") == 0)) {
> +		    (strcmp(t.token, "ACPI_BIOS_ERROR") == 0) ||
> +		    (strcmp(t.token, "ACPI_EXCEPTION") == 0)) {
>   			parse_kernel_message(&p, &t);
>   		} else
>   			token_clear(&t);
>
Acked-by: Alex Hung <alex.hung@canonical.com>
Keng-Yu Lin - Nov. 22, 2012, 6:10 a.m.
On Tue, Nov 20, 2012 at 7:13 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The ACPI driver has about 90 ACPI_EXCEPTION message calls, so
> add scanning for these too.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  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 d966f03..5630306 100644
> --- a/src/utilities/kernelscan.c
> +++ b/src/utilities/kernelscan.c
> @@ -766,7 +766,8 @@ static int parse_kernel_message(parser *p, token *t)
>
>         if ((strcmp(t->token, "dev_err") == 0) ||
>             (strcmp(t->token, "ACPI_ERROR") == 0) ||
> -           (strcmp(t->token, "ACPI_BIOS_ERROR") == 0))
> +           (strcmp(t->token, "ACPI_BIOS_ERROR") == 0) ||
> +           (strcmp(t->token, "ACPI_EXCEPTION") == 0))
>                 emit = true;
>
>         line = strdupcat(line, t->token);
> @@ -859,7 +860,8 @@ static void parse_kernel_messages(FILE *fp)
>                 if ((strcmp(t.token, "printk") == 0) ||
>                     (strcmp(t.token, "dev_err") == 0) ||
>                     (strcmp(t.token, "ACPI_ERROR") == 0) ||
> -                   (strcmp(t.token, "ACPI_BIOS_ERROR") == 0)) {
> +                   (strcmp(t.token, "ACPI_BIOS_ERROR") == 0) ||
> +                   (strcmp(t.token, "ACPI_EXCEPTION") == 0)) {
>                         parse_kernel_message(&p, &t);
>                 } else
>                         token_clear(&t);
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>

Patch

diff --git a/src/utilities/kernelscan.c b/src/utilities/kernelscan.c
index d966f03..5630306 100644
--- a/src/utilities/kernelscan.c
+++ b/src/utilities/kernelscan.c
@@ -766,7 +766,8 @@  static int parse_kernel_message(parser *p, token *t)
 
 	if ((strcmp(t->token, "dev_err") == 0) ||
 	    (strcmp(t->token, "ACPI_ERROR") == 0) ||
-	    (strcmp(t->token, "ACPI_BIOS_ERROR") == 0))
+	    (strcmp(t->token, "ACPI_BIOS_ERROR") == 0) ||
+	    (strcmp(t->token, "ACPI_EXCEPTION") == 0))
 		emit = true;
 
 	line = strdupcat(line, t->token);
@@ -859,7 +860,8 @@  static void parse_kernel_messages(FILE *fp)
 		if ((strcmp(t.token, "printk") == 0) ||
 		    (strcmp(t.token, "dev_err") == 0) ||
 		    (strcmp(t.token, "ACPI_ERROR") == 0) ||
-		    (strcmp(t.token, "ACPI_BIOS_ERROR") == 0)) {
+		    (strcmp(t.token, "ACPI_BIOS_ERROR") == 0) ||
+		    (strcmp(t.token, "ACPI_EXCEPTION") == 0)) {
 			parse_kernel_message(&p, &t);
 		} else
 			token_clear(&t);