aboutsummaryrefslogtreecommitdiff
path: root/libc/bionic/syslog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add the %m GNU extension to printf/wprintf.Elliott Hughes2018-08-301-41/+1
| | | | | | | | And remove the local hack from syslog(3). Bug: http://b/112776560 Test: ran tests Change-Id: I5807e729a978df26187ea0ee255bba4ca74220c8
* Modernize codebase by replacing NULL with nullptrYi Kong2018-08-021-4/+4
| | | | | | | | Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
* Move libc_log code into libasync_safe.Christopher Ferris2017-05-031-3/+3
| | | | | | | | | | | | | | | | | | This library is used by a number of different libraries in the system. Make it easy for platform libraries to use this library and create an actual exported include file. Change the names of the functions to reflect the new name of the library. Run clang_format on the async_safe_log.cpp file since the formatting is all over the place. Bug: 31919199 Test: Compiled for angler/bullhead, and booted. Test: Ran bionic unit tests. Test: Ran the malloc debug tests. Change-Id: I8071bf690c17b0ea3bc8dc5749cdd5b6ad58478a
* Clean up <stdlib.h> slightly.Elliott Hughes2015-01-261-0/+1
| | | | | | | Interestingly, this mostly involves cleaning up our implementation of various <string.h> functions. Change-Id: Ifaef49b5cb997134f7bc0cc31bdac844bdb9e089
* Use vsnprintf(3) in syslog(3).Elliott Hughes2014-07-281-1/+47
| | | | | | | | | | | | | | | 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
* Fix belated review comments on syslog change.Elliott Hughes2014-07-231-3/+3
| | | | | Bug: 14292866 Change-Id: I3cd92084cb55b5673f6ba62d51952941b79deb51
* Rewrite syslog(3) to use Android logging.Elliott Hughes2014-07-211-0/+75
Since we don't have syslogd on Android and you can't run one on a non-rooted device, it's more useful if syslog output just goes to the regular Android logging system. Bug: 14292866 Change-Id: Icee7f088b97f88ccbdaf471b98cbac7f19f9210a