From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [RFC iproute 5/5] mroute: use print_uint64 Date: Fri, 20 Apr 2018 10:15:19 -0700 Message-ID: <20180420171519.8028-6-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-f66.google.com ([209.85.160.66]:45423 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbeDTRP3 (ORCPT ); Fri, 20 Apr 2018 13:15:29 -0400 Received: by mail-pl0-f66.google.com with SMTP id w22-v6so1032702pll.12 for ; Fri, 20 Apr 2018 10:15:29 -0700 (PDT) In-Reply-To: <20180420171519.8028-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: The values from multicast stats are 64 bit always. Signed-off-by: Stephen Hemminger --- ip/ipmroute.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ip/ipmroute.c b/ip/ipmroute.c index 59c5b7718e18..eb6b2816324f 100644 --- a/ip/ipmroute.c +++ b/ip/ipmroute.c @@ -182,14 +182,14 @@ int print_mroute(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) struct rta_mfc_stats *mfcs = RTA_DATA(tb[RTA_MFC_STATS]); print_string(PRINT_FP, NULL, "%s", _SL_); - print_uint(PRINT_ANY, "packets", " %"PRIu64" packets,", + print_uint64(PRINT_ANY, "packets", " %"PRIu64" packets,", mfcs->mfcs_packets); - print_uint(PRINT_ANY, "bytes", " %"PRIu64" bytes", mfcs->mfcs_bytes); + print_uint64(PRINT_ANY, "bytes", " %"PRIu64" bytes", mfcs->mfcs_bytes); if (mfcs->mfcs_wrong_if) - print_uint(PRINT_ANY, "wrong_if", - ", %"PRIu64" arrived on wrong iif.", - mfcs->mfcs_wrong_if); + print_uint64(PRINT_ANY, "wrong_if", + ", %"PRIu64" arrived on wrong iif.", + mfcs->mfcs_wrong_if); } if (show_stats && tb[RTA_EXPIRES]) { -- 2.17.0