ACK: [PATCH] utilities: kernelscan.c: add scanning for ACPI_EXCEPTION messages

Alex Hung alex.hung at canonical.com
Thu Nov 22 02:42:28 UTC 2012


On 11/20/2012 07:13 PM, Colin King wrote:
> From: Colin Ian King <colin.king at 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 at 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 at canonical.com>



More information about the fwts-devel mailing list