From: Pablo Neira Ayuso Date: Wed, 12 Feb 2014 12:47:43 +0000 (+0100) Subject: meta: remove line break when printing priority X-Git-Tag: v0.2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661f5efc90267825b4bccfef4c069d6c340ef089;p=thirdparty%2Fnftables.git meta: remove line break when printing priority The line break is added after printing the rule. --- diff --git a/src/meta.c b/src/meta.c index 0a3df39f8..af5c3f97f 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;