diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-06-19 21:53:51 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-19 21:53:51 +0000 |
commit | d515d22ae7835c5816d7557c951a0c5d546ae4db (patch) | |
tree | 4f759109054c81d8a4c9783d0db8bbf9a0892c9c | |
parent | 1b6257fe28b8ed08c0def8a934dff5c63427b108 (diff) | |
parent | 324a76ab8e79a97c1e95c230ce5b237736b057f6 (diff) |
Merge "Explicitly show the destination filename for a bugreport." am: ca876d8037 am: 3ff439fe77 am: 8f5ed79e34 am: 4d98c28e36 am: 324a76ab8e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1343880
Change-Id: I21f9c3b783765621c48f75f22fdfbbc8f25da777
-rw-r--r-- | adb/client/bugreport.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/adb/client/bugreport.cpp b/adb/client/bugreport.cpp index e162aaad1..f2e722ab8 100644 --- a/adb/client/bugreport.cpp +++ b/adb/client/bugreport.cpp @@ -104,7 +104,9 @@ class BugreportStandardStreamsCallback : public StandardStreamsCallbackInterface 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" |