From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [RFC iproute 0/5] print_uint issues Date: Fri, 20 Apr 2018 10:15:14 -0700 Message-ID: <20180420171519.8028-1-stephen@networkplumber.org> Cc: netdev@vger.kernel.org, Stephen Hemminger To: alin.nastac@gmail.com Return-path: Received: from mail-pl0-f65.google.com ([209.85.160.65]:38270 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbeDTRPW (ORCPT ); Fri, 20 Apr 2018 13:15:22 -0400 Received: by mail-pl0-f65.google.com with SMTP id c7-v6so5608693plr.5 for ; Fri, 20 Apr 2018 10:15:21 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: There are several issues with implicit conversions in json handling print_uint function which were first seen and patches proposed by Alin Nastac. This is my swipe at them. Final version will be some combination of his patches and some of this. Spotted some more changing print_uint into a macro, but that got ugly. Stephen Hemminger (5): ipneigh: fix missing format specifier json: make json print_uint take unsigned int flower: use 16 bit format where possible tcp_metrics: use print_luint mroute: use print_uint64 include/json_print.h | 16 +++++++++++++--- ip/ipmroute.c | 10 +++++----- ip/ipneigh.c | 2 +- ip/tcp_metrics.c | 2 +- lib/json_print.c | 33 ++++++++++++++++++++++++++++++--- tc/f_flower.c | 2 +- 6 files changed, 51 insertions(+), 14 deletions(-) -- 2.17.0