summaryrefslogtreecommitdiffstats
path: root/init/log.h
Commit message (Collapse)AuthorAgeFilesLines
* Log more timing information from init.Elliott Hughes2015-03-281-4/+5
| | | | | | | | | | | | | | | | | Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
* Redirect libselinux logging to dmesg for ueventd.Stephen Smalley2014-06-241-0/+2
| | | | | | | | | | | | | | | | We already do this for init, but had failed to do it for ueventd and could not capture any logging from libselinux calls made by ueventd. Truly enabling non-error logging also requires uncommenting a line in Android.mk: LOCAL_CFLAGS += -DLOG_UEVENTS=1 which enables other logging and sets the default log level to INFO, or otherwise changing the klog level in the ueventd code (is not settable by init.rc loglevel). Change-Id: I00e6f9d6271f2a21d9078c96368816d74d6d2850 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* ueventd: easier debug loggingAlex Ray2014-03-071-2/+0
| | | | | | | Move ueventd debug flag into the Android.mk. Boost klog level if event logging enabled. Change-Id: Iae48edbc43c487092c2424023576af29c76ff401
* init/cutils: move kernel logging interface to libcutils from initDima Zavin2011-09-021-9/+4
| | | | | Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>
* init: Move list and log handling to list.h and log.hColin Cross2010-04-211-0/+33
Change-Id: I298f575c590d0f28b7ad78747f3ebdbba56b7a27