From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [RFC iproute 4/5] tcp_metrics: use print_luint Date: Fri, 20 Apr 2018 10:15:18 -0700 Message-ID: <20180420171519.8028-5-stephen@networkplumber.org> References: <20180420171519.8028-1-stephen@networkplumber.org> Cc: netdev@vger.kernel.org, Stephen Hemminger To: alin.nastac@gmail.com Return-path: Received: from mail-pl0-f67.google.com ([209.85.160.67]:39672 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703AbeDTRP2 (ORCPT ); Fri, 20 Apr 2018 13:15:28 -0400 Received: by mail-pl0-f67.google.com with SMTP id e7-v6so5611874plt.6 for ; Fri, 20 Apr 2018 10:15:27 -0700 (PDT) In-Reply-To: <20180420171519.8028-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: Metrics are long unsigned, so use correct print function. Signed-off-by: Stephen Hemminger --- ip/tcp_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/tcp_metrics.c b/ip/tcp_metrics.c index 72dc980c92a6..3b82a4e1d2f2 100644 --- a/ip/tcp_metrics.c +++ b/ip/tcp_metrics.c @@ -139,7 +139,7 @@ static void print_tcp_metrics(struct rtattr *a) print_uint(PRINT_JSON, name, NULL, val); print_string(PRINT_FP, NULL, " %s ", name); - print_uint(PRINT_FP, NULL, "%lu", val); + print_luint(PRINT_FP, NULL, "%lu", val); } if (rtt) { -- 2.17.0