summaryrefslogtreecommitdiff
path: root/drivers/staging/android/logger.c
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-02-23 16:09:47 -0800
committerColin Cross <ccross@android.com>2011-06-14 09:09:27 -0700
commit845fdd0f75d67ce7e3df457fd9d1dd88f90cb60f (patch)
treeaded4ea5c7ea34e31ec71e2600c97c4bb1de9fc2 /drivers/staging/android/logger.c
parentaf62b25adba1fe01c91aa88c95d1584371ab2bf9 (diff)
android: logger: Add new system log for framework/system log messages
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers/staging/android/logger.c')
-rw-r--r--drivers/staging/android/logger.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 64cc2a1e7b1..15b2e97002a 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -557,6 +557,7 @@ static struct logger_log VAR = { \
DEFINE_LOGGER_DEVICE(log_main, LOGGER_LOG_MAIN, 64*1024)
DEFINE_LOGGER_DEVICE(log_events, LOGGER_LOG_EVENTS, 256*1024)
DEFINE_LOGGER_DEVICE(log_radio, LOGGER_LOG_RADIO, 64*1024)
+DEFINE_LOGGER_DEVICE(log_system, LOGGER_LOG_SYSTEM, 64*1024)
static struct logger_log *get_log_from_minor(int minor)
{
@@ -566,6 +567,8 @@ static struct logger_log *get_log_from_minor(int minor)
return &log_events;
if (log_radio.misc.minor == minor)
return &log_radio;
+ if (log_system.misc.minor == minor)
+ return &log_system;
return NULL;
}
@@ -602,6 +605,10 @@ static int __init logger_init(void)
if (unlikely(ret))
goto out;
+ ret = init_log(&log_system);
+ if (unlikely(ret))
+ goto out;
+
out:
return ret;
}