netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft] log: rename the log level "warning" to "warn"
@ 2016-10-30 12:24 Liping Zhang
  2016-10-31 13:39 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Liping Zhang @ 2016-10-30 12:24 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel, Liping Zhang

From: Liping Zhang <zlpnobody@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 <zlpnobody@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH nft] log: rename the log level "warning" to "warn"
  2016-10-30 12:24 [PATCH nft] log: rename the log level "warning" to "warn" Liping Zhang
@ 2016-10-31 13:39 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2016-10-31 13:39 UTC (permalink / raw)
  To: Liping Zhang; +Cc: netfilter-devel, Liping Zhang

On Sun, Oct 30, 2016 at 08:24:27PM +0800, Liping Zhang wrote:
> From: Liping Zhang <zlpnobody@gmail.com>
> 
> This is to keep compatibility. The original keyword in grammer is
> "warn" instead of "warning".

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-31 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-30 12:24 [PATCH nft] log: rename the log level "warning" to "warn" Liping Zhang
2016-10-31 13:39 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).