From b0f2066ac0ebf3c5151ae2ece231b2317dfa3a5f Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Fri, 19 Apr 2013 01:37:23 +0200 Subject: src: remove trailing newlines, tabs and spaces from XML format Delete all \n and \t from XML output, any reasonable XML viewer already does the nifty formatting for us. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/chain.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/chain.c') diff --git a/src/chain.c b/src/chain.c index 9d77179..c06e552 100644 --- a/src/chain.c +++ b/src/chain.c @@ -450,18 +450,18 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c) { return snprintf(buf, size, "\n" - "\t\n" - "\t\t%d\n" - "\t\t%s\n" - "\t\t%s
\n" - "\t\t%d\n" - "\t\t%d\n" - "\t\t%d\n" - "\t\t%d\n" - "\t\t%d\n" - "\t
\n" - "
\n", + " bytes=\"%lu\" packets=\"%lu\">" + "" + "%d" + "%s" + "%s
" + "%d" + "%d" + "%d" + "%d" + "%d" + "
" + "", c->name, c->handle, c->bytes, c->packets, c->flags, c->type, c->table, c->prio, c->use, c->hooknum, c->policy, c->family); -- cgit v1.2.3