diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-23 06:00:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-23 06:00:49 +0000 |
commit | b2f338e9a91e18f1c66f68364a53985bd4c05997 (patch) | |
tree | 9ae69d9fb37ebe8eddf784521d0dad26f07353b9 | |
parent | ff7b1ed92714e1ebba98f1b011a136cabbc7ce1d (diff) | |
download | cygnal-b2f338e9a91e18f1c66f68364a53985bd4c05997.tar.gz cygnal-b2f338e9a91e18f1c66f68364a53985bd4c05997.tar.bz2 cygnal-b2f338e9a91e18f1c66f68364a53985bd4c05997.zip |
* smallprint.c (__small_vsprintf): Implement '%o' after all these years.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/smallprint.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 592a8cc79..e05c12bbe 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-05-23 Christopher Faylor <cgf@redhat.com> + + * smallprint.c (__small_vsprintf): Implement '%o' after all these + years. + 2002-05-22 Christopher Faylor <cgf@redhat.com> * fhandler.h (fhandler_virtual::exists): Eliminate path argument. diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index 97a2b6ce1..d2a365c94 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -135,6 +135,9 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) case 'U': dst = rn (dst, 10, 0, va_arg (ap, long long), len, pad); break; + case 'o': + dst = rn (dst, 8, 0, va_arg (ap, unsigned), len, pad); + break; case 'p': *dst++ = '0'; *dst++ = 'x'; |