ip route: Print expires as signed int
rta_expires is a signed int; print it as one.
Fixes: 663c3cb231 ("iproute: implement JSON and color output")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
e2f5ceccda
commit
39d16a02d9
|
|
@ -463,8 +463,8 @@ static void print_rta_cacheinfo(FILE *fp, const struct rta_cacheinfo *ci)
|
||||||
hz = get_user_hz();
|
hz = get_user_hz();
|
||||||
|
|
||||||
if (ci->rta_expires != 0)
|
if (ci->rta_expires != 0)
|
||||||
print_uint(PRINT_ANY, "expires",
|
print_int(PRINT_ANY, "expires",
|
||||||
"expires %usec ", ci->rta_expires/hz);
|
"expires %dsec ", ci->rta_expires/hz);
|
||||||
if (ci->rta_error != 0)
|
if (ci->rta_error != 0)
|
||||||
print_uint(PRINT_ANY, "error",
|
print_uint(PRINT_ANY, "error",
|
||||||
"error %u ", ci->rta_error);
|
"error %u ", ci->rta_error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue