commit | b1b60c30bf321c0fc02264b953b5c16c49d34457 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jul 25 20:31:47 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Jul 28 09:33:00 2014 -0700 |
tree | c9b0363443d5c86339b67740607c441c9fcc1d9a | |
parent | c1a6a7256026431a9ae49ef2a6139ea99410819b [diff] |
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. Bug: 14292866 Change-Id: I9c83500ba9cbb209b6f496067a91bf69434eeef5