netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2 nft] meta: remove line break when printing priority
@ 2014-02-13 11:41 Pablo Neira Ayuso
  2014-02-13 11:41 ` [PATCH 2/2 nft] scanner: fix parsing of tc handle Pablo Neira Ayuso
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Neira Ayuso @ 2014-02-13 11:41 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

The line break is added after printing the rule.
---
 src/meta.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/meta.c b/src/meta.c
index 0a3df39..af5c3f9 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -75,11 +75,11 @@ static void tchandle_type_print(const struct expr *expr)
 		printf("none\n");
 	default:
 		if (TC_H_MAJ(handle) == 0)
-			printf(":%04x\n", TC_H_MIN(handle));
+			printf(":%04x", TC_H_MIN(handle));
 		else if (TC_H_MIN(handle) == 0)
-			printf("%04x:\n", TC_H_MAJ(handle) >> 16);
+			printf("%04x:", TC_H_MAJ(handle) >> 16);
 		else {
-			printf("%04x:%04x\n",
+			printf("%04x:%04x",
 			       TC_H_MAJ(handle) >> 16, TC_H_MIN(handle));
 		}
 		break;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-14 10:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 11:41 [PATCH 1/2 nft] meta: remove line break when printing priority Pablo Neira Ayuso
2014-02-13 11:41 ` [PATCH 2/2 nft] scanner: fix parsing of tc handle Pablo Neira Ayuso
2014-02-13 11:51   ` Patrick McHardy
2014-02-13 13:01     ` Patrick McHardy
2014-02-13 13:08       ` Mart Frauenlob
2014-02-13 13:21         ` Patrick McHardy
2014-02-13 13:31       ` Pablo Neira Ayuso
2014-02-13 13:36         ` Patrick McHardy
2014-02-13 14:17           ` Patrick McHardy
2014-02-14 10:59             ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).