Added support for %o (octal format).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10604 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c
index 2e04ab5..cf61731 100644
--- a/coregrind/m_debuglog.c
+++ b/coregrind/m_debuglog.c
@@ -780,6 +780,18 @@
else { is_long = True; }
switch (format[i]) {
+ case 'o': /* %o */
+ if (flags & VG_MSG_ALTFORMAT) {
+ ret += 2;
+ send('0',send_arg2);
+ }
+ if (is_long)
+ ret += myvprintf_int64(send, send_arg2, flags, 8, width, False,
+ (ULong)(va_arg (vargs, ULong)));
+ else
+ ret += myvprintf_int64(send, send_arg2, flags, 8, width, False,
+ (ULong)(va_arg (vargs, UInt)));
+ break;
case 'd': /* %d */
flags |= VG_MSG_SIGNED;
if (is_long)