commit | 3ff439fe7750d918547c2a229fe173df3f80a08f | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Jun 19 21:04:52 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jun 19 21:04:52 2020 +0000 |
tree | decf0401dfc1a4c64c70db087f3e2f691337d7e3 | |
parent | 650d8dc4aa35e9ae3cf727d741495b670ba6d132 [diff] | |
parent | ca876d8037cfd4b589651e42aa920bd1a72c4eae [diff] |
Merge "Explicitly show the destination filename for a bugreport." am: ca876d8037 Original change: https://android-review.googlesource.com/c/platform/system/core/+/1343880 Change-Id: Ie577838df014386543d1392ae4d68567f39e441c
diff --git a/adb/client/bugreport.cpp b/adb/client/bugreport.cpp index e162aaa..f2e722a 100644 --- a/adb/client/bugreport.cpp +++ b/adb/client/bugreport.cpp
@@ -104,7 +104,9 @@ SetLineMessage("pulling"); status_ = br_->DoSyncPull(srcs, destination.c_str(), false, line_message_.c_str()) ? 0 : 1; - if (status_ != 0) { + if (status_ == 0) { + printf("Bug report copied to %s\n", destination.c_str()); + } else { fprintf(stderr, "Bug report finished but could not be copied to '%s'.\n" "Try to run 'adb pull %s <directory>'\n"