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/expr/counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expr/counter.c') diff --git a/src/expr/counter.c b/src/expr/counter.c index d2da9bf..550d56d 100644 --- a/src/expr/counter.c +++ b/src/expr/counter.c @@ -133,7 +133,7 @@ nft_rule_expr_counter_snprintf(char *buf, size_t len, uint32_t type, switch(type) { case NFT_RULE_O_XML: - return snprintf(buf, len, "\t\t%lu %lu ", + return snprintf(buf, len, "%lu%lu", ctr->pkts, ctr->bytes); case NFT_RULE_O_DEFAULT: return snprintf(buf, len, "pkts=%lu bytes=%lu ", -- cgit v1.2.3