From f830fce5c95a1771ceb8c2d727a8c99c7bc64e7e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 11 Apr 2018 09:52:23 +0200 Subject: 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 --- src/expr/objref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/expr/objref.c b/src/expr/objref.c index 4cfa3cb..64ee863 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); -- cgit v1.2.3