diff options
| author | 2016-02-24 22:21:40 +0000 | |
|---|---|---|
| committer | 2016-02-24 22:21:40 +0000 | |
| commit | 503ebdbc5ecae9dda74124a4350c40f81a695c02 (patch) | |
| tree | bca9486d98788b529f5e722e5d085746f20f022d /cmds/dumpstate/utils.cpp | |
| parent | 0a2c2fb459b539a98e7d34fdaf48e6e2a514f65e (diff) | |
| parent | 88c7933df551f6dadd8cc931d104b01d6d1609e4 (diff) | |
Merge "Improved dumpstate logging." into nyc-dev
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
| -rw-r--r-- | cmds/dumpstate/utils.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index 282a772d53..f0ae325457 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -713,6 +713,7 @@ void send_broadcast(const std::string& action, const std::vector<std::string>& a } // Always terminate with NULL. am_args[am_index + 1] = NULL; + log_args("send_broadcast arguments", am_index, am_args); run_command_always(NULL, 5, am_args); } @@ -1187,3 +1188,12 @@ void dump_emmc_ecsd(const char *ext_csd_path) { printf("\n"); } + +void log_args(const std::string& message, int argc, const char *argv[]) { + std::string args; + for (int i = 0; i < argc; i++) { + args.append(argv[i]); + args.append(" "); + } + MYLOGI("%s: %s\n", message.c_str(), args.c_str()); +} |