From 3e245120e07a45be0f00d3a4ab71a7ec859d6ae3 Mon Sep 17 00:00:00 2001 From: Sergey Popovich Date: Mon, 5 May 2014 11:07:05 +0300 Subject: libipset: print third element in debugging We have that done for first and second elements when parsing element string, do this for third element for convenience. Signed-off-by: Sergey Popovich Signed-off-by: Jozsef Kadlecsik --- lib/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/parse.c') diff --git a/lib/parse.c b/lib/parse.c index be6e833..6ed65cb 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -1979,8 +1979,10 @@ ipset_parse_elem(struct ipset_session *session, D("parse elem part two: %s", a); parse_elem(session, type, IPSET_DIM_TWO, a); } - if (type->dimension > IPSET_DIM_TWO && b != NULL) + if (type->dimension > IPSET_DIM_TWO && b != NULL) { + D("parse elem part three: %s", b); parse_elem(session, type, IPSET_DIM_THREE, b); + } goto out; -- cgit v1.2.3