From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next] ip: Use print_0xhex() where appropriate Date: Fri, 9 Feb 2018 09:12:41 -0700 Message-ID: References: <1518105845-4951-1-git-send-email-serhe.popovych@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Serhey Popovych , netdev@vger.kernel.org Return-path: Received: from mail-io0-f179.google.com ([209.85.223.179]:41485 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbeBIQMn (ORCPT ); Fri, 9 Feb 2018 11:12:43 -0500 Received: by mail-io0-f179.google.com with SMTP id f4so10164847ioh.8 for ; Fri, 09 Feb 2018 08:12:43 -0800 (PST) In-Reply-To: <1518105845-4951-1-git-send-email-serhe.popovych@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2/8/18 9:04 AM, Serhey Popovych wrote: > In gre/gre6 for non-JSON output 0x%x format is used: use print_0xhex() > to get the same value for JSON. > > Get rid of custom _print_hex() in bridge slave code: print_0xhex() can > be used perfectly. > > Break long print_uint() with long argument list to fit into 80 columns. > > Signed-off-by: Serhey Popovych > --- > ip/iplink_bridge_slave.c | 24 +++++------------------- > ip/link_gre.c | 6 ++++-- > ip/link_gre6.c | 6 ++++-- > 3 files changed, 13 insertions(+), 23 deletions(-) > applied to iproute2-next