From: Stephen Hemminger Subject: [PATCH v2 iproute2-next 26/31] tc/cbs: convert to JSON output Date: Tue, 10 Jul 2018 14:05:53 -0700 Message-ID: <20180710210558.20278-27-stephen@networkplumber.org> References: <20180710210558.20278-1-stephen@networkplumber.org> Cc: Stephen Hemminger , Stephen Hemminger To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f195.google.com ([209.85.215.195]:34265 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732593AbeGJVOy (ORCPT ); Tue, 10 Jul 2018 17:14:54 -0400 Received: by mail-pg1-f195.google.com with SMTP id y5-v6so2317549pgv.1 for ; Tue, 10 Jul 2018 14:14:01 -0700 (PDT) In-Reply-To: <20180710210558.20278-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Stephen Hemminger Signed-off-by: Stephen Hemminger --- tc/q_cbs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tc/q_cbs.c b/tc/q_cbs.c index a2ffb1db3852..1518a79cd733 100644 --- a/tc/q_cbs.c +++ b/tc/q_cbs.c @@ -125,11 +125,11 @@ static int cbs_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) if (RTA_PAYLOAD(tb[TCA_CBS_PARMS]) < sizeof(*qopt)) return -1; - fprintf(f, "hicredit %d ", qopt->hicredit); - fprintf(f, "locredit %d ", qopt->locredit); - fprintf(f, "sendslope %d ", qopt->sendslope); - fprintf(f, "idleslope %d ", qopt->idleslope); - fprintf(f, "offload %d ", qopt->offload); + print_uint(PRINT_ANY, "hicredit", "hicredit %u ", qopt->hicredit); + print_uint(PRINT_ANY, "locredit", "locredit %u", qopt->locredit); + print_uint(PRINT_ANY, "sendslope", "sendslope %u", qopt->sendslope); + print_uint(PRINT_ANY, "idleslope", "idleslope %u", qopt->idleslope); + print_uint(PRINT_ANY, "offload", "offload %u", qopt->offload); return 0; } -- 2.18.0