summaryrefslogtreecommitdiffstats
path: root/init/init.h
diff options
context:
space:
mode:
authorRiley Andrews <riandrews@google.com>2014-06-26 13:56:01 -0700
committerRiley Andrews <riandrews@google.com>2014-06-26 15:05:15 -0700
commit24a3b783d5fcf55fdc9034ef395a5fbc77290c75 (patch)
tree8e125f970a110735809888d688c352cf55efb6f5 /init/init.h
parenta42d5bf0064e8c8ce50b22abe13bb6eed4ea9dac (diff)
downloadsystem_core-24a3b783d5fcf55fdc9034ef395a5fbc77290c75.tar.gz
system_core-24a3b783d5fcf55fdc9034ef395a5fbc77290c75.tar.bz2
system_core-24a3b783d5fcf55fdc9034ef395a5fbc77290c75.zip
Improve init's debug printing.
+ Make prints of rc commands significantly more verbose. All commands will log all arguments, file/line number of the command, return value, and parent action which triggered the command. init: command 'mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000' action=init status=0 (/init.rc:89) init: command 'setprop net.tcp.default_init_rwnd 60' action=boot status=0 (/init.rc:403) Change-Id: I5498c7258e4891706be4a12546df4231d14d86c4
Diffstat (limited to 'init/init.h')
-rw-r--r--init/init.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/init/init.h b/init/init.h
index c2419123a..a7615a367 100644
--- a/init/init.h
+++ b/init/init.h
@@ -29,10 +29,14 @@ struct command
struct listnode clist;
int (*func)(int nargs, char **args);
+
+ int line;
+ const char *filename;
+
int nargs;
char *args[1];
};
-
+
struct action {
/* node in list of all actions */
struct listnode alist;
@@ -43,7 +47,7 @@ struct action {
unsigned hash;
const char *name;
-
+
struct listnode commands;
struct command *current;
};