bionic/libc
Elliott Hughes f1e83cc34a Use vsnprintf(3) in syslog(3).
It seemed like a clever trick to use the internal log message formatting
code in syslog(3), but on reflection that means you can't (for example)
format floating point numbers. This patch switches us over to using good
old vsnprintf(3), even though that requires us to jump through a few hoops.

There's no obvious way to unit test this, so I wrote a little program and
ran that.

(cherry-pick of b1b60c30bf321c0fc02264b953b5c16c49d34457.)

Bug: 14292866
Change-Id: I9c83500ba9cbb209b6f496067a91bf69434eeef5
2014-07-28 09:43:21 -07:00
..
arch-arm Enable building libc with clang. 2014-07-11 09:28:53 -07:00
arch-arm64 Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
arch-common/bionic Fixes for __cxa_finalize 2014-05-05 11:36:57 -07:00
arch-mips [MIPS] Drop soft-fp targets 2014-07-24 18:04:21 +00:00
arch-mips64 [MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models 2014-07-23 13:57:30 -07:00
arch-x86 Remove the unused swab.S. 2014-07-22 20:21:31 -07:00
arch-x86_64 Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
bionic Use vsnprintf(3) in syslog(3). 2014-07-28 09:43:21 -07:00
dns Fix all resolv warnings and turn on -Werror. 2014-07-02 16:27:20 -07:00
include Start hiding "private/bionic_time.h". 2014-07-25 12:03:51 -07:00
kernel Add gen syscalls step to instructions. 2014-07-15 19:02:33 -07:00
private Start hiding "private/bionic_time.h". 2014-07-25 12:03:51 -07:00
stdio Fix visibility for a bunch more symbols. 2014-07-14 15:13:30 -07:00
tools Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros. 2014-07-23 11:10:48 -07:00
tzcode Remove localtime_tz and strftime_tz. 2014-07-25 15:50:31 -07:00
upstream-dlmalloc Put all allocation functions into dispatch table. 2014-06-12 15:08:18 -07:00
upstream-freebsd Fix visibility for a bunch more symbols. 2014-07-14 15:13:30 -07:00
upstream-netbsd Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
upstream-openbsd Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
zoneinfo Upgrade to tzdata2014e. 2014-06-13 10:55:19 -07:00
Android.mk Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
crt.mk Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
MODULE_LICENSE_BSD auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
NOTICE Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
SYSCALLS.TXT Clean up some misinformation around prctl. 2014-07-18 16:15:32 -07:00