diff options
author | Tanguy Pruvot <tanguy.pruvot@gmail.com> | 2011-12-19 06:31:31 +0100 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 22:59:19 +0100 |
commit | 973311bf110a57a618a70de3a37b7309dd8c9020 (patch) | |
tree | 0ccfb6b58f0905b67d475776619aa1f0d55e085e /init/init_parser.c | |
parent | 87e87fc7bfa2a033aabd5b339526f35e85fa6bee (diff) | |
download | system_core-973311bf110a57a618a70de3a37b7309dd8c9020.zip system_core-973311bf110a57a618a70de3a37b7309dd8c9020.tar.gz system_core-973311bf110a57a618a70de3a37b7309dd8c9020.tar.bz2 |
init: implement a new 'log' command, useful to debug property events
liblog is not usable, because stderr and stdout are redirected to
/dev/null to control the android log output.
Only forked processes are able to write to the android logs...
Note: accept parameters: log [-t topic] [-p level] <message>
limit : strings beginning with "--" are not handled
Change-Id: I2fbf7422e0085d4cdf1bba6511413d1f796d4555
Diffstat (limited to 'init/init_parser.c')
-rw-r--r-- | init/init_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init_parser.c b/init/init_parser.c index 5393e52..a2cd06a 100644 --- a/init/init_parser.c +++ b/init/init_parser.c @@ -118,6 +118,7 @@ int lookup_keyword(const char *s) break; case 'l': if (!strcmp(s, "oglevel")) return K_loglevel; + if (!strcmp(s, "og")) return K_log; if (!strcmp(s, "oad_persist_props")) return K_load_persist_props; break; case 'm': |