diff options
| author | 2016-03-11 09:33:32 -0800 | |
|---|---|---|
| committer | 2016-03-17 09:19:50 -0700 | |
| commit | a34efb7ae17a7ea1078cce75be634120bd72a421 (patch) | |
| tree | cf943f3e57a2426cdbc83a9ead74086c22cbefa4 /cmds/dumpstate/dumpstate.cpp | |
| parent | e4eb4f0e2380f698d31b0089fb0e22020b70c2bc (diff) | |
Improve logging of child commands.
When execvpe() is called it doesn't return, so the child error handling
should be done at the parent, otherwise the failure is not printed in the bugreport.
BUG: 27583193
Change-Id: I6161e4c72b7b0da7b82bff7fd72d7a5aaf4d6e89
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 458ed3e525..d7e5f171c6 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1058,7 +1058,9 @@ int main(int argc, char *argv[]) { } /* parse arguments */ - log_args("Dumpstate command line", argc, const_cast<const char **>(argv)); + std::string args; + format_args(argc, const_cast<const char **>(argv), &args); + MYLOGD("Dumpstate command line: %s\n", args.c_str()); int c; while ((c = getopt(argc, argv, "dho:svqzpPBRV:")) != -1) { switch (c) { |