From f95e8598af7e3a1641166b4e6be31b87d4690326 Mon Sep 17 00:00:00 2001 From: Giuseppe Longo Date: Fri, 5 Jul 2013 10:06:28 +0200 Subject: src: improve default text output This patch improves default plain text output by mimicing the default output of libnl-nft. While at it, several %lu has been translated to use %"PRIu64" for correctness. [ I have added the policy to string translation --pablo ] Signed-off-by: Giuseppe Longo Signed-off-by: Pablo Neira Ayuso --- src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/table.c') diff --git a/src/table.c b/src/table.c index 982d101..27fa8fc 100644 --- a/src/table.c +++ b/src/table.c @@ -359,7 +359,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 family=%s flags=%x", + return snprintf(buf, size, "table %s %s flags %x", t->name, nft_family2str(t->family), t->table_flags); } -- cgit v1.2.3