From: Liping Zhang Date: Sun, 30 Oct 2016 12:24:27 +0000 (+0800) Subject: log: rename the log level "warning" to "warn" X-Git-Tag: v0.7~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=740b719aa77a2100076d16c58bc5d6e04f731b9f;p=thirdparty%2Fnftables.git 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 --- 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;