summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-05-07 19:39:51 +0200
committerDamjan Marion <dmarion@me.com>2021-05-11 07:38:01 +0000
commit04a14133c89bf869d51bace64d2c3e62d9e61c87 (patch)
treea2858e04996ec2642d59c85a9474dad78bf3e17e
parent269e1569e1f7798bf7d7f539daf505b2f1997a08 (diff)
vppinfra: Add missing %o
This is used in vppinfra/socket.c:495 Type: feature Change-Id: I89b409ae7abb01723108ae3e6c55bb1675db50ee Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
-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;