From 21df3e20669b910b58881bc4782cb05351a55a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Wed, 31 Jul 2013 15:21:12 +0200 Subject: chain: remove the properties node in Json output I have removed the properties node from chain because it's a node without relevant information Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- src/chain.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/chain.c b/src/chain.c index 621794c..7e2567b 100644 --- a/src/chain.c +++ b/src/chain.c @@ -669,10 +669,9 @@ static int nft_chain_snprintf_json(char *buf, size_t size, struct nft_chain *c) "\"handle\": %"PRIu64"," "\"bytes\": %"PRIu64"," "\"packets\": %"PRIu64"," - "\"properties\": {" - "\"family\": \"%s\"," - "\"table\": \"%s\"," - "\"use\": %d", + "\"family\": \"%s\"," + "\"table\": \"%s\"," + "\"use\": %d", c->name, c->handle, c->bytes, c->packets, nft_family2str(c->family), c->table, c->use); @@ -690,7 +689,6 @@ static int nft_chain_snprintf_json(char *buf, size_t size, struct nft_chain *c) } ret = snprintf(buf+offset, size, - "}" "}" "}"); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); -- cgit v1.2.3