aboutsummaryrefslogtreecommitdiffstats
path: root/init/init_parser.c
diff options
context:
space:
mode:
authorTanguy Pruvot <tanguy.pruvot@gmail.com>2011-12-19 06:31:31 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-07-10 22:59:19 +0100
commit973311bf110a57a618a70de3a37b7309dd8c9020 (patch)
tree0ccfb6b58f0905b67d475776619aa1f0d55e085e /init/init_parser.c
parent87e87fc7bfa2a033aabd5b339526f35e85fa6bee (diff)
downloadsystem_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.c1
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':