From d4171773a5d5d6a5c2dd2a33a87339d8ecf9b7f5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 18 Jun 2020 11:05:38 -0700 Subject: [PATCH] Explicitly show the destination filename for a bugreport. It's in the progress output, but typically gets truncated. Bug: https://issuetracker.google.com/131112559 Test: adb bugreport Change-Id: I35ba4f39941aea68f2412e7b64feaac4da2f82e3 --- adb/client/bugreport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 '\n"