aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Théou <jb@essential.com>2018-04-17 10:14:25 +0900
committerDmitry Vyukov <dvyukov@google.com>2018-04-18 09:26:01 +0200
commit52643b44142b6b5de7b9d2a9fde0fd58ec1f1028 (patch)
treef146c5cac1ba0a593338eca57591e69f877e32e4
parent2199644490acace6ca5a211a6cef4532a1a1bc46 (diff)
adb: add debug level to ALERT for UART detector
The UART output may filter lower level messages. This ensure proper detection of the unique ID Signed-off-by: Jean-Baptiste Théou <jb@essential.com>
-rw-r--r--vm/adb/adb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index d9ba3f499..853f541e1 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -185,7 +185,7 @@ func findConsoleImpl(adb, dev string) (string, error) {
}
time.Sleep(500 * time.Millisecond)
unique := fmt.Sprintf(">>>%v<<<", dev)
- cmd := osutil.Command(adb, "-s", dev, "shell", "echo", "\"", unique, "\"", ">", "/dev/kmsg")
+ cmd := osutil.Command(adb, "-s", dev, "shell", "echo", "\"<1>", unique, "\"", ">", "/dev/kmsg")
if out, err := cmd.CombinedOutput(); err != nil {
return "", fmt.Errorf("failed to run adb shell: %v\n%s", err, out)
}