From 1c8a6c57b0936ca24fe2dd8455c47d6a2fb5cb7f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 19 Apr 2013 01:51:57 +0200 Subject: src: remove trailing \n from all nft_*_snprintf functions The caller should add it in case it needs it. Signed-off-by: Pablo Neira Ayuso --- examples/nft-set-elem-get.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/nft-set-elem-get.c') diff --git a/examples/nft-set-elem-get.c b/examples/nft-set-elem-get.c index 3c45ead..34dfca2 100644 --- a/examples/nft-set-elem-get.c +++ b/examples/nft-set-elem-get.c @@ -36,7 +36,7 @@ static int set_cb(const struct nlmsghdr *nlh, void *data) } nft_set_snprintf(buf, sizeof(buf), t, 0, 0); - printf("%s", buf); + printf("%s\n", buf); err_free: nft_set_free(t); -- cgit v1.2.3