diff options
author | Pim van Pelt <pim@ipng.nl> | 2022-07-19 08:32:22 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2022-07-26 17:03:20 +0000 |
commit | a5266c6bb508253c2a64719b093eb09f3e14ed9a (patch) | |
tree | 372ac48e6387dba5fd340717395e7d01e03d2cf6 /src/vppinfra | |
parent | 8636a320413c12d1747c695ac594ca643ac539ba (diff) |
vppinfra: fix formatting of format_base10
format_base10 reads 64b but is fed 32b values at the callsite; change
to u64 consistently. The function has only one call site in
interface/monitor.c which has a few additional bugs (spurious
character, and ambiguous 'bits' versus 'bytes' in the output).
Type: improvement
Signed-off-by: Pim van Pelt <pim@ipng.nl>
Change-Id: I360f0d439cc13c09bd3f53db8184bd12ad4bc2e9
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/std-formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/std-formats.c b/src/vppinfra/std-formats.c index f7632e16a0b..bfe9844c832 100644 --- a/src/vppinfra/std-formats.c +++ b/src/vppinfra/std-formats.c @@ -254,7 +254,7 @@ format_time_interval (u8 * s, va_list * args) __clib_export u8 * format_base10 (u8 *s, va_list *va) { - uword size = va_arg (*va, uword); + u64 size = va_arg (*va, u64); if (size < 1000) s = format (s, "%d", size); |