summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move libcutils source to C++.Elliott Hughes2017-11-101-1/+2
| | | | | | | | | | | | | | | | | Just the minimial changes to get this to actually build, because otherwise we always bog down trying to rewrite everything (when the real answer is usually "stop using libcutils, it's awful"). This doesn't move a handful of files: two are basically just BSD libc source, a couple have outstanding code reviews, and one can be deleted (but I'll do that in a separate change). I'm also skipping the presubmit hooks because otherwise clang-format wants to reformat everything. I'll follow up with that... Bug: N/A Test: builds Change-Id: I06403f465b67c8e493bad466dd76b1151eed5993
* Remove unused klog_get_level.Elliott Hughes2017-01-131-4/+0
| | | | | | | | Every little helps... Bug: N/A Test: builds Change-Id: Ibcac5cda1619420c95903211ed0b96af81351f9e
* libcutils: change klog_level to KLOG_INFO_LEVELWei Wang2017-01-131-1/+1
| | | | | | | | | | | | Some of Android componets e.g. init have migrated to use base/logging to get rid of klog utilities. However, without explicit initilization, the default klog_level is set to 3 which masks the logwrap output. This patch sets default klog_level to KLOG_INFO_LEVEL to make android_fork_execvp_ext log available. Bug: 34256270 Test: manual Change-Id: Ibe74707a92c954053cd0e6828a984fbd72b4acae
* libcutils: move cutils/files.h to cutils/android_get_control_file.hMark Salyzyn2016-11-161-1/+1
| | | | | | | | | | files.[h|cpp] is bound to be abused with junk, replace with android_get_control_file.[h|cpp]. Plus some sundry cleanup. Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests, logcat-unit-tests and init_tests Bug: 32450474 Change-Id: Ibd4a7aa4624ea19a43d1f98a3c71ac37805d36b5
* libcutils: klog inherit android_get_control_file("/dev/kmsg")Mark Salyzyn2016-11-031-1/+6
| | | | | | | | If the file descriptor is in the environment, use it. Test: compile Bug: 32450474 Change-Id: Id208b11b727a44dc861a141130a644d7d8009c5f
* Fix early init logging.Elliott Hughes2016-07-261-9/+1
| | | | | | | | | | | Remove the /dev/__kmsg__ workarounds (which can then be removed from sepolicy), and fix confusion in the translation between android-base logging and kernel logging priorities (in particular, where 'notice' comes in the hierarchy). Bug: http://b/30317429 Change-Id: I6eaf9919904b6b55bc402c20bf1a4ae269014bc7 Test: adb shell dmesg | grep init
* Remove no-op klog_init.Elliott Hughes2016-07-191-3/+0
| | | | Change-Id: I467edad1d004ac16647f4aa1f0eead04e808efa0
* Make klog_fd thread-safe and make klog_init a no-op.Elliott Hughes2016-06-291-0/+79
I'll come back and remove klog_init when I've removed other calls to it. Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb Test: booted N9, looked at "adb shell dmesg" output.