ip route: Print expires as signed int
Subsystems (2)
PATCH 1/1 ip route: Print expires as signed int
From: David Ahern <[email protected]>
rta_expires is a signed int; print it as one.
Fixes 663c3cb23103f ("iproute: implement JSON and color output")
Signed-off-by David Ahern <[email protected]>
--- ip/iproute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ip/iproute.c +2 -2
@@ -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);
Signature · 1 line
2.11.0
Stephen Hemminger
AppliedQuoted 6 lines · On Wed, 23 May 2018 11:50:01 -0700 [email protected] wrote:
From: David Ahern <[email protected]>
rta_expiresis a signed int; print it as one.Fixes 663c3cb23103f ("iproute: implement JSON and color output")Signed-off-by David Ahern <[email protected]>
Applied, thanks.