Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281202
b: refs/heads/master
c: 3537cda
h: refs/heads/master
v: v3
  • Loading branch information
San Mehat authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent 7ddcb5c commit c27ed46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0445f1548fc66a72f3b91cdbe8f26b120245efd1
refs/heads/master: 3537cdaa16205d2af7e1195276c786f22bada574
7 changes: 7 additions & 0 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,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)
{
Expand All @@ -567,6 +568,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;
}

Expand Down Expand Up @@ -603,6 +606,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;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/staging/android/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct logger_entry {

#define LOGGER_LOG_RADIO "log_radio" /* radio-related messages */
#define LOGGER_LOG_EVENTS "log_events" /* system/hardware events */
#define LOGGER_LOG_SYSTEM "log_system" /* system/framework messages */
#define LOGGER_LOG_MAIN "log_main" /* everything else */

#define LOGGER_ENTRY_MAX_LEN (4*1024)
Expand Down

0 comments on commit c27ed46

Please sign in to comment.