From 004869d0d4947a6e56b2d1bd481bbb6916d7a2e0 Mon Sep 17 00:00:00 2001 From: Naoyuki Mori Date: Tue, 4 Sep 2018 10:36:54 +0900 Subject: Fixed showing negative count in stats show CLI Some counters (bytes, pkts) are formatted as signed instead of unsigned in "show hardware-interfaces" and "show lb". These stats counters are declared as u64. Change-Id: Id1b588188bff4e36402beb8d07f779e9a5193956 Signed-off-by: Naoyuki Mori --- src/plugins/lb/lb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/lb/lb.c') diff --git a/src/plugins/lb/lb.c b/src/plugins/lb/lb.c index fb62c217e7f..041c65c1326 100644 --- a/src/plugins/lb/lb.c +++ b/src/plugins/lb/lb.c @@ -232,7 +232,7 @@ u8 *format_lb_vip_detailed (u8 * s, va_list * args) format_white_space, indent); u32 i; for (i=0; ivip_counters[i].name, vlib_get_simple_counter(&lbm->vip_counters[i], vip - lbm->vips)); @@ -253,7 +253,7 @@ u8 *format_lb_vip_detailed (u8 * s, va_list * args) u32 *as_index; pool_foreach(as_index, vip->as_indexes, { as = &lbm->ass[*as_index]; - s = format(s, "%U %U %d buckets %d flows dpo:%u %s\n", + s = format(s, "%U %U %u buckets %Lu flows dpo:%u %s\n", format_white_space, indent, format_ip46_address, &as->address, IP46_TYPE_ANY, count[as - lbm->ass], -- cgit 1.2.3-korg