path: root/src/table.c
diff options
authorGiuseppe Longo <>2013-07-05 10:06:28 +0200
committerPablo Neira Ayuso <>2013-07-05 13:06:23 +0200
commitf95e8598af7e3a1641166b4e6be31b87d4690326 (patch)
tree21714a822cb02404ba68e1dfd9da3b39a082991e /src/table.c
parent1085a4e18d297d8338cf9babe7e623e25a00f499 (diff)
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 <>
Diffstat (limited to 'src/table.c')
1 files changed, 1 insertions, 1 deletions
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);