From 740b719aa77a2100076d16c58bc5d6e04f731b9f Mon Sep 17 00:00:00 2001 From: Liping Zhang Date: Sun, 30 Oct 2016 20:24:27 +0800 Subject: log: rename the log level "warning" to "warn" This is to keep compatibility. The original keyword in grammer is "warn" instead of "warning". Fixes: 0423caa91ad2 ("src: don't need keyword for log level") Signed-off-by: Liping Zhang Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser_bison.y b/src/parser_bison.y index fa5de0c2..17f23c5b 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1540,7 +1540,7 @@ level_type : string $$ = LOG_CRIT; else if (!strcmp("err", $1)) $$ = LOG_ERR; - else if (!strcmp("warning", $1)) + else if (!strcmp("warn", $1)) $$ = LOG_WARNING; else if (!strcmp("notice", $1)) $$ = LOG_NOTICE; -- cgit v1.2.3