aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmm
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2018-11-13 07:58:36 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-15 14:28:30 -0800
commitf5e275d1d9ad023a25bb60af9011b452ad9cbaf9 (patch)
tree823103496bedb1a1ea74a45b759d4d38c9048e41 /vm/vmm
parent58fb30b383e0769aea1669b00c15529471db4ba7 (diff)
vm/vmm: make sure to always end ddb commands with a newline
Missed one in my previous commit.
Diffstat (limited to 'vm/vmm')
-rw-r--r--vm/vmm/vmm.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm/vmm/vmm.go b/vm/vmm/vmm.go
index e6b6782b7..9b5740421 100644
--- a/vm/vmm/vmm.go
+++ b/vm/vmm/vmm.go
@@ -320,14 +320,14 @@ func (inst *instance) Diagnose() bool {
// If kernel just hanged, we've lost connection or detected some non-panic error,
// console still shows normal login prompt.
commands := []string{
- "\n",
- "set $lines = 0\n", // disable pagination
+ "",
+ "set $lines = 0", // disable pagination
"show panic",
- "trace\n",
- "show registers\n",
+ "trace",
+ "show registers",
}
for _, c := range commands {
- inst.consolew.Write([]byte(c))
+ inst.consolew.Write([]byte(c + "\n"))
time.Sleep(1 * time.Second)
}
return true