[PATCH nft] log: rename the log level "warning" to "warn"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Liping Zhang <zlpnobody@xxxxxxxxx>

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@xxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux