aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vppinfra/format.c b/src/vppinfra/format.c
index b67553c6f2d..ccd999e582f 100644
--- a/src/vppinfra/format.c
+++ b/src/vppinfra/format.c
@@ -278,6 +278,7 @@ do_percent (u8 ** _s, const u8 * fmt, va_list * va)
case 'x':
case 'X':
case 'u':
+ case 'o':
case 'd':
{
u64 number;
@@ -311,6 +312,9 @@ do_percent (u8 ** _s, const u8 * fmt, va_list * va)
break;
}
+ if (c == 'o')
+ o.base = 8;
+
s = format_integer (s, number, &o);
}
break;