Merge "Fixed header on runCommand()."
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 9cf52b2..5575084 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -758,9 +758,9 @@
const char* args[size];
- printf("------");
- if (title) printf(" %s", title);
- printf(" (");
+ if (title) {
+ printf("------ %s (", title);
+ }
std::string commandString;
int i = 0;
@@ -780,7 +780,10 @@
args[i] = nullptr;
const char* path = args[0];
const char* command = commandString.c_str();
- printf("%s)\n", command);
+
+ if (title) {
+ printf("%s) ------\n", command);
+ }
fflush(stdout);