From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next v2 1/1] tc: add json support in csum action Date: Tue, 5 Jun 2018 15:33:59 -0700 Message-ID: <0b236c0e-460b-e21b-790f-4374026a1395@gmail.com> References: <1528231459-26546-1-git-send-email-kleib@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org, netdev@vger.kernel.org, kernel@mojatatu.com To: Keara Leibovitz , dsahern@gmail.com Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:42741 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752552AbeFEWeC (ORCPT ); Tue, 5 Jun 2018 18:34:02 -0400 Received: by mail-pf0-f195.google.com with SMTP id w7-v6so2075452pfn.9 for ; Tue, 05 Jun 2018 15:34:02 -0700 (PDT) In-Reply-To: <1528231459-26546-1-git-send-email-kleib@mojatatu.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 6/5/18 1:44 PM, Keara Leibovitz wrote: > Add json output support for checksum action. > ... > > Signed-off-by: Keara Leibovitz > --- > tc/m_csum.c | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > > diff --git a/tc/m_csum.c b/tc/m_csum.c > index 8391071d73f2..0bdbcf361a28 100644 > --- a/tc/m_csum.c > +++ b/tc/m_csum.c > @@ -162,6 +162,7 @@ print_csum(struct action_util *au, FILE *f, struct rtattr *arg) > char *uflag_5 = ""; > char *uflag_6 = ""; > char *uflag_7 = ""; > + char buf[64]; changed that line to 'SPRINT_BUF(buf);' per Stephen's comment and applied to iproute2-next.