From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH iproute2] tc: don't double print rate Date: Mon, 9 Jul 2018 09:55:26 -0700 Message-ID: <20180709165526.12154-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: netdev@vger.kernel.org Return-path: Received: from mail-pf0-f178.google.com ([209.85.192.178]:36305 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932755AbeGIQza (ORCPT ); Mon, 9 Jul 2018 12:55:30 -0400 Received: by mail-pf0-f178.google.com with SMTP id u16-v6so14079165pfh.3 for ; Mon, 09 Jul 2018 09:55:30 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: Conversion to print stats in JSON forgot to remove existing fprintf. Fixes: 4fcec7f3665b ("tc: jsonify stats2") Signed-off-by: Stephen Hemminger --- tc/tc_util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tc/tc_util.c b/tc/tc_util.c index e0c96291ade0..d7578528a31b 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -842,8 +842,6 @@ void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtat memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re))); - fprintf(fp, "\n%srate %s %upps ", - prefix, sprint_rate(re.bps, b1), re.pps); print_string(PRINT_FP, NULL, "\n%s", prefix); print_uint(PRINT_JSON, "rate", NULL, re.bps); print_string(PRINT_FP, NULL, "rate %s", -- 2.18.0