am 6743dab5: Merge "init: Add additional logging levels"

* commit '6743dab51fbd6487ab924ad38e5d4c07dd174a60':
  init: Add additional logging levels
This commit is contained in:
Mark Salyzyn 2015-07-22 00:12:47 +00:00 committed by Android Git Automerger
commit 18fc744f2e
1 changed files with 3 additions and 0 deletions

View File

@ -20,8 +20,11 @@
#include <cutils/klog.h>
#define ERROR(x...) init_klog_write(KLOG_ERROR_LEVEL, x)
#define WARNING(x...) init_klog_write(KLOG_WARNING_LEVEL, x)
#define NOTICE(x...) init_klog_write(KLOG_NOTICE_LEVEL, x)
#define INFO(x...) init_klog_write(KLOG_INFO_LEVEL, x)
#define DEBUG(x...) init_klog_write(KLOG_DEBUG_LEVEL, x)
#define VERBOSE(x...) init_klog_write(KLOG_DEBUG_LEVEL, x)
void init_klog_write(int level, const char* fmt, ...) __printflike(2, 3);
int selinux_klog_callback(int level, const char* fmt, ...) __printflike(2, 3);