summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Wang2017-01-12 17:32:26 -0600
committerWei Wang2017-01-13 00:18:46 -0600
commit677ba31db20d214ffb83e0102a9b78d811b5bf68 (patch)
treea0c4c32c78249ac3bd1709eb133827585d5cfaac /include
parentdd9fa24091e28490eddeea1583f47cdc968b57f6 (diff)
downloadplatform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.tar.gz
platform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.tar.xz
platform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.zip
libcutils: change klog_level to KLOG_INFO_LEVEL
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
Diffstat (limited to 'include')
-rw-r--r--include/cutils/klog.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/cutils/klog.h b/include/cutils/klog.h
index c837edb9a..e7cd30046 100644
--- a/include/cutils/klog.h
+++ b/include/cutils/klog.h
@@ -44,6 +44,4 @@ __END_DECLS
44#define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) 44#define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x)
45#define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) 45#define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x)
46 46
47#define KLOG_DEFAULT_LEVEL 3 /* messages <= this level are logged */
48
49#endif 47#endif