From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH] json_print: fix print_uint with helper type extensions Date: Mon, 26 Mar 2018 09:03:38 -0600 Message-ID: <4f02a767-abc6-4e04-22c1-fee79e1ac323@gmail.com> References: <20180315200720.829-1-ldir@darbyshire-bryant.me.uk> <20180316133437.5f535a0e@xeon-e3> <1BC918EA-5B3E-41D7-B033-AC659B615829@darbyshire-bryant.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "netdev@vger.kernel.org" To: Kevin Darbyshire-Bryant , Stephen Hemminger Return-path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:44269 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbeCZPDm (ORCPT ); Mon, 26 Mar 2018 11:03:42 -0400 Received: by mail-pf0-f193.google.com with SMTP id m68so7615885pfm.11 for ; Mon, 26 Mar 2018 08:03:42 -0700 (PDT) In-Reply-To: <1BC918EA-5B3E-41D7-B033-AC659B615829@darbyshire-bryant.me.uk> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 3/18/18 2:40 AM, Kevin Darbyshire-Bryant wrote: > > >> On 16 Mar 2018, at 20:34, Stephen Hemminger wrote: >>> >>> print_uint64(PRINT_ANY, "refcnt", "refcnt %" PRIu64 " ", t->tcm_info) >>> >>> Signed-off-by: Kevin Darbyshire-Bryant >> >> I am fine with this. But since there is no code using it yet, it should >> go net-next branch. >> >> Reviewed-by: Stephen Hemminger > > Existing code is tripping up over the hidden uint - > uint64_t promotion in print_uint in iproute2 v4.15, that’s how I fell over the issue. Should I split the patch? One fixing the uint->uint64_t and the other offering the explicit type length options. > > Obviously I now realise that the email header should have iproute2 in it. Learning, slowly :-) > Kevin: I guess you need to split the patch. Extract the bug fix piece and send for iproute2; enhancements go to iproute2-next.