From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 v5 2/7] ip6tnl/tunnel: Do not print obscure flowinfo Date: Wed, 10 Jan 2018 17:53:10 +0200 Message-ID: <1515599595-27958-3-git-send-email-serhe.popovych@gmail.com> References: <1515599595-27958-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f65.google.com ([209.85.215.65]:38187 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965566AbeAJPxX (ORCPT ); Wed, 10 Jan 2018 10:53:23 -0500 Received: by mail-lf0-f65.google.com with SMTP id d19so12083074lfj.5 for ; Wed, 10 Jan 2018 07:53:22 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id i18sm3383697ljb.45.2018.01.10.07.53.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 07:53:20 -0800 (PST) In-Reply-To: <1515599595-27958-1-git-send-email-serhe.popovych@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: It is implementation internal and main purpose of printing it seems debugging. Signed-off-by: Serhey Popovych --- ip/link_ip6tnl.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ip/link_ip6tnl.c b/ip/link_ip6tnl.c index 8e84ed0..e084975 100644 --- a/ip/link_ip6tnl.c +++ b/ip/link_ip6tnl.c @@ -440,16 +440,6 @@ static void ip6tunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb } } - if (is_json_context()) { - SPRINT_BUF(flwinfo); - - snprintf(flwinfo, sizeof(flwinfo), "0x%08x", ntohl(flowinfo)); - print_string(PRINT_JSON, "flowinfo", NULL, flwinfo); - } else { - printf("(flowinfo 0x%08x) ", ntohl(flowinfo)); - - } - if (flags & IP6_TNL_F_RCV_DSCP_COPY) print_bool(PRINT_ANY, "ip6_tnl_f_rcv_dscp_copy", -- 1.7.10.4