ACK: [PATCH] utils: kernelscan: also scan for warning messages (LP: #1206953)
Alex Hung
alex.hung at canonical.com
Thu Aug 1 07:46:33 UTC 2013
On 07/31/2013 11:17 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Add ability to scan also for kernel warning messages.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/utilities/kernelscan.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/utilities/kernelscan.c b/src/utilities/kernelscan.c
> index 9acaa4e..04de0f6 100644
> --- a/src/utilities/kernelscan.c
> +++ b/src/utilities/kernelscan.c
> @@ -805,7 +805,8 @@ static int parse_kernel_message(parser *p, token *t)
> (prev_token_type == TOKEN_PAREN_OPENED) &&
> ((strcmp(t->token, "KERN_ERR") == 0) ||
> (strcmp(t->token, "KERN_CRIT") == 0) ||
> - (strcmp(t->token, "KERN_EMERG") == 0))) {
> + (strcmp(t->token, "KERN_EMERG") == 0) ||
> + (strcmp(t->token, "KERN_WARNING") == 0))) {
> emit = true;
> }
>
>
Acked-by: Alex Hung <alex.hung at canonical.com>
--
Cheers,
Alex Hung
More information about the fwts-devel
mailing list