summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-05-11 15:31:20 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 09:54:56 +0000
commit55e4f87b79738703f3c4f4875c9f7eca80fcc8bd (patch)
treef956fc857acf92d6a32014b40edf3d577b6b8851
parent704a2c452eeba652221a20e094606a74a0ff4f2b (diff)
vlib: fix u64 error counter cli printing
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie35dc623394cfb6c358740361fd85aa0924ab187 (cherry picked from commit 1ae16c8f3bebe33b2404ad845a2f09f910a06390)
-rw-r--r--src/vlib/error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vlib/error.c b/src/vlib/error.c
index 0918f624a66..7357f17c278 100644
--- a/src/vlib/error.c
+++ b/src/vlib/error.c
@@ -247,10 +247,10 @@ show_errors (vlib_main_t * vm,
continue;
if (verbose)
- vlib_cli_output (vm, "%10Ld%=40v%=20s%=6d", c, n->name,
+ vlib_cli_output (vm, "%10lu%=40v%=20s%=6d", c, n->name,
em->error_strings_heap[i], i);
else
- vlib_cli_output (vm, "%10d%=40v%s", c, n->name,
+ vlib_cli_output (vm, "%10lu%=40v%s", c, n->name,
em->error_strings_heap[i]);
}
}
@@ -270,7 +270,7 @@ show_errors (vlib_main_t * vm,
if (sums[i])
{
if (verbose)
- vlib_cli_output (vm, "%10Ld%=40v%=20s%=10d", sums[i], n->name,
+ vlib_cli_output (vm, "%10lu%=40v%=20s%=10d", sums[i], n->name,
em->error_strings_heap[i], i);
}
}