summaryrefslogtreecommitdiffstats
path: root/libcutils/klog.c
Commit message (Collapse)AuthorAgeFilesLines
* Always unlink /dev/__kmsg__.Elliott Hughes2015-03-281-4/+1
| | | | | | Whether the open succeeds or fails, we should unlink. Change-Id: Ic2f1e10dc7b6d6e459c56049da00d165bd63ba8f
* Log more timing information from init.Elliott Hughes2015-03-281-22/+21
| | | | | | | | | | | | | | | | | 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
* libcutils: add method to get klog levelAlex Ray2014-03-071-0/+4
| | | | Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361
* Enable building init with -Wall -Werror.Stephen Smalley2014-02-191-4/+10
| | | | | | | | Eliminates various warnings from SELinux-related code. Bug: 12587913 Change-Id: I28921f0ebd934324436609540d95ccef58552b64 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* klog: error handling fixupsTodd Poynor2013-04-221-0/+3
| | | | Change-Id: I9014e62010c589ec30d5e99eef420353e35418b5
* klog: Have klog_write() call klog_init() if neededKen Sumrall2013-04-111-1/+4
| | | | | | Also change klog_init() to do nothing if already initialized. Change-Id: Ia2dfe914c9d9fd119fb8939508d57b15c9884663
* init/cutils: move kernel logging interface to libcutils from initDima Zavin2011-09-021-0/+60
Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>