diff options
author | Josh Gao <jmgao@google.com> | 2016-08-04 14:55:23 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-08-04 14:56:53 -0700 |
commit | baa215ea59842f0f94880b1a59830a557954588a (patch) | |
tree | 47d1c0c5a970031d017bf646428aba9bda97fe8c /adb/file_sync_client.cpp | |
parent | ed3596aadfe5727752a2e93a8fa2a981dce5e8e5 (diff) |
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
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r-- | adb/file_sync_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp index fbca770f9e..454de41be0 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; |