From mboxrd@z Thu Jan 1 00:00:00 1970 From: dsahern@kernel.org Subject: [PATCH iproute2] ip route: Print expires as signed int Date: Wed, 23 May 2018 11:50:01 -0700 Message-ID: <20180523185001.32686-1-dsahern@kernel.org> Cc: David Ahern To: netdev@vger.kernel.org, stephen@networkplumber.org Return-path: Received: from mail.kernel.org ([198.145.29.99]:59528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933928AbeEWSuD (ORCPT ); Wed, 23 May 2018 14:50:03 -0400 Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern rta_expires is a signed int; print it as one. Fixes: 663c3cb23103f ("iproute: implement JSON and color output") Signed-off-by: David Ahern --- ip/iproute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ip/iproute.c b/ip/iproute.c index 56dd9f25e38e..cbc43e2b691a 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -463,8 +463,8 @@ static void print_rta_cacheinfo(FILE *fp, const struct rta_cacheinfo *ci) hz = get_user_hz(); if (ci->rta_expires != 0) - print_uint(PRINT_ANY, "expires", - "expires %usec ", ci->rta_expires/hz); + print_int(PRINT_ANY, "expires", + "expires %dsec ", ci->rta_expires/hz); if (ci->rta_error != 0) print_uint(PRINT_ANY, "error", "error %u ", ci->rta_error); -- 2.11.0