From: Sergey Popovich Date: Mon, 5 May 2014 08:07:05 +0000 (+0300) Subject: libipset: print third element in debugging X-Git-Tag: v6.22~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e245120e07a45be0f00d3a4ab71a7ec859d6ae3;p=ipset 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 --- 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;