diff options
author | Elliott Hughes <enh@google.com> | 2015-05-01 17:04:38 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-05-01 17:36:46 -0700 |
commit | ab52c181fa4c1c9891644635dc5653cda5b90e2b (patch) | |
tree | 5fdf22f3d3bea5999fc32e5d13c6a74549d688ae /adb/transport.cpp | |
parent | b74d889211f30d99c222fa7d3cfaf4a7390d6a95 (diff) | |
download | core-ab52c181fa4c1c9891644635dc5653cda5b90e2b.tar.gz core-ab52c181fa4c1c9891644635dc5653cda5b90e2b.tar.bz2 core-ab52c181fa4c1c9891644635dc5653cda5b90e2b.zip |
Add WriteFdFmt and clean up more code.
Also say *which* device wasn't found.
Bug: http://b/20666660
Change-Id: I50e234ad89e39ae0a8995083c0b642c61275c5a3
Diffstat (limited to 'adb/transport.cpp')
-rw-r--r-- | adb/transport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/transport.cpp b/adb/transport.cpp index b7f30ea36..5c50c0a82 100644 --- a/adb/transport.cpp +++ b/adb/transport.cpp @@ -748,7 +748,7 @@ atransport* acquire_one_transport(int state, transport_type ttype, int ambiguous = 0; retry: - if (error_out) *error_out = "device not found"; + if (error_out) *error_out = android::base::StringPrintf("device '%s' not found", serial); adb_mutex_lock(&transport_lock); for (t = transport_list.next; t != &transport_list; t = t->next) { |