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/target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expr/target.c') diff --git a/src/expr/target.c b/src/expr/target.c index 86c9bc8..d3de8e8 100644 --- a/src/expr/target.c +++ b/src/expr/target.c @@ -193,7 +193,7 @@ int nft_rule_exp_target_snprintf_xml(char *buf, size_t len, int offset = 0; uint8_t *data = (uint8_t *)tg->data; - ret = snprintf(buf, len, "\t\t%s %u 0x", + ret = snprintf(buf, len, "%s%u0x", tg->name, tg->rev); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); @@ -202,7 +202,7 @@ int nft_rule_exp_target_snprintf_xml(char *buf, size_t len, SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } - ret = snprintf(buf+offset, len, "" ); + ret = snprintf(buf+offset, len, ""); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); return offset; -- cgit v1.2.3