From: Bart Van Assche Date: Sun, 26 Jul 2009 08:40:17 +0000 (+0000) Subject: Added support for %o (octal format). X-Git-Tag: svn/VALGRIND_3_5_0~244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eee5e4cabac14657760eba80141fdea2723a6085;p=thirdparty%2Fvalgrind.git Added support for %o (octal format). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10604 --- diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index 2e04ab5cd7..cf61731831 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -780,6 +780,18 @@ VG_(debugLog_vprintf) ( 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)