Fixed header on runCommand().

BUG: 26379932
Fixes: 31755035
Test: manual
Change-Id: I3c1779afee8e0d601a2ed3a227999a87bb5236c7
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 9e042c9..5e074d9 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -757,9 +757,9 @@
 
     const char* args[size];
 
-    printf("------");
-    if (title) printf(" %s", title);
-    printf(" (");
+    if (title) {
+        printf("------ %s (", title);
+    }
 
     std::string commandString;
     int i = 0;
@@ -779,7 +779,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);