summaryrefslogtreecommitdiff
path: root/adb/daemon/usb.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-03-02 20:46:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-02 20:46:15 +0000
commit9978c367548fa29473bef75dc5836000d10ad71c (patch)
treece5381761474a3bbc1800c2abf03b665a233e65d /adb/daemon/usb.cpp
parentacb49fd07d328d6cb87fd8d9bdf49fbbaffe58a4 (diff)
parentbbe3385097750842a8d87b9d3d0248c937dcdb97 (diff)
Merge changes Ib97acc6d,I8f14004a,Id5bbfd6d,I4dfc3f52 into rvc-dev
* changes: adbd: add runtime-configurable logging. adb: don't hardcode ports in test_adb. adbd: add usb thread spawn logging. base: add CachedProperty.
Diffstat (limited to 'adb/daemon/usb.cpp')
-rw-r--r--adb/daemon/usb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/adb/daemon/usb.cpp b/adb/daemon/usb.cpp
index 0928198076..ff97a6f052 100644
--- a/adb/daemon/usb.cpp
+++ b/adb/daemon/usb.cpp
@@ -282,6 +282,7 @@ struct UsbFfsConnection : public Connection {
monitor_thread_ = std::thread([this]() {
adb_thread_setname("UsbFfs-monitor");
+ LOG(INFO) << "UsbFfs-monitor thread spawned";
bool bound = false;
bool enabled = false;
@@ -427,6 +428,8 @@ struct UsbFfsConnection : public Connection {
worker_started_ = true;
worker_thread_ = std::thread([this]() {
adb_thread_setname("UsbFfs-worker");
+ LOG(INFO) << "UsbFfs-worker thread spawned";
+
for (size_t i = 0; i < kUsbReadQueueDepth; ++i) {
read_requests_[i] = CreateReadBlock(next_read_id_++);
if (!SubmitRead(&read_requests_[i])) {