diff mbox

[libnftnl,2/8] table: Break the line properly when printing out the table

Message ID 1392115608-6733-3-git-send-email-tomasz.bursztyka@linux.intel.com
State Not Applicable
Headers show

Commit Message

Tomasz Bursztyka Feb. 11, 2014, 10:46 a.m. UTC
As when a rule is printed etc... It fixes a bug in iptables when
printing out the table in debug mode.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
---
 src/table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/table.c b/src/table.c
index f50a968..529f568 100644
--- a/src/table.c
+++ b/src/table.c
@@ -383,7 +383,7 @@  static int nft_table_snprintf_xml(char *buf, size_t size, struct nft_table *t)
 
 static int nft_table_snprintf_default(char *buf, size_t size, struct nft_table *t)
 {
-	return snprintf(buf, size, "table %s %s flags %x",
+	return snprintf(buf, size, "table %s %s flags %x\n",
 			t->name, nft_family2str(t->family), t->table_flags);
 }