From baa215ea59842f0f94880b1a59830a557954588a Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 4 Aug 2016 14:55:23 -0700 Subject: [PATCH] adb: fix output of `sync -l` sync with list-only was using SyncConnection::Error to print its output persistently, which would prepend "adb: error: " to messages. Change-Id: I90df5fc1123b8c613c811cf66c37aef05663b1e4 --- adb/file_sync_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp index fbca770f9..454de41be 100644 --- a/adb/file_sync_client.cpp +++ b/adb/file_sync_client.cpp @@ -699,7 +699,7 @@ static bool copy_local_dir_remote(SyncConnection& sc, std::string lpath, for (const copyinfo& ci : file_list) { if (!ci.skip) { if (list_only) { - sc.Error("would push: %s -> %s", ci.lpath.c_str(), ci.rpath.c_str()); + sc.Println("would push: %s -> %s", ci.lpath.c_str(), ci.rpath.c_str()); } else { if (!sync_send(sc, ci.lpath.c_str(), ci.rpath.c_str(), ci.time, ci.mode)) { return false;