From: Pablo Neira Ayuso Date: Wed, 11 Apr 2018 07:52:23 +0000 (+0200) Subject: expr: objref: do not print id X-Git-Tag: libnftnl-1.1.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f830fce5c95a1771ceb8c2d727a8c99c7bc64e7e;p=thirdparty%2Flibnftnl.git expr: objref: do not print id The lookup expression does not do this either, so let's be consistent and remove it. Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/expr/objref.c b/src/expr/objref.c index 4cfa3cbf..64ee8638 100644 --- a/src/expr/objref.c +++ b/src/expr/objref.c @@ -225,8 +225,8 @@ static int nftnl_expr_objref_snprintf_default(char *buf, size_t len, struct nftnl_expr_objref *objref = nftnl_expr_data(e); if (e->flags & (1 << NFTNL_EXPR_OBJREF_SET_SREG)) - return snprintf(buf, len, "sreg %u set %s id %u ", - objref->set.sreg, objref->set.name, objref->set.id); + return snprintf(buf, len, "sreg %u set %s ", + objref->set.sreg, objref->set.name); else return snprintf(buf, len, "type %u name %s ", objref->imm.type, objref->imm.name);