From: Liping Zhang <zlpnob...@gmail.com>

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 <zlpnob...@gmail.com>
---
 src/parser_bison.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser_bison.y b/src/parser_bison.y
index 85234ca..4ed7494 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;
-- 
2.5.5


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to