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/meta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expr/meta.c') diff --git a/src/expr/meta.c b/src/expr/meta.c index 2095545..bfc1aa6 100644 --- a/src/expr/meta.c +++ b/src/expr/meta.c @@ -133,8 +133,8 @@ nft_rule_expr_meta_snprintf(char *buf, size_t len, uint32_t type, switch(type) { case NFT_RULE_O_XML: - return snprintf(buf, len, "\t\t%u" - " %u ", + return snprintf(buf, len, "%u" + "%u", meta->dreg, meta->key); case NFT_RULE_O_DEFAULT: return snprintf(buf, len, "dreg=%u key=%u ", -- cgit v1.2.3