summaryrefslogtreecommitdiff
path: root/adb/daemon/shell_service.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/shell_service.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/shell_service.cpp')
-rw-r--r--adb/daemon/shell_service.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/daemon/shell_service.cpp b/adb/daemon/shell_service.cpp
index f62032d067..fbfae1e44f 100644
--- a/adb/daemon/shell_service.cpp
+++ b/adb/daemon/shell_service.cpp
@@ -107,6 +107,7 @@
#include "adb_trace.h"
#include "adb_unique_fd.h"
#include "adb_utils.h"
+#include "daemon/logging.h"
#include "security_log_tags.h"
#include "shell_protocol.h"
@@ -760,14 +761,14 @@ void Subprocess::WaitForExit() {
D("post waitpid (pid=%d) status=%04x", pid_, status);
if (WIFSIGNALED(status)) {
exit_code = 0x80 | WTERMSIG(status);
- D("subprocess killed by signal %d", WTERMSIG(status));
+ ADB_LOG(Shell) << "subprocess " << pid_ << " killed by signal " << WTERMSIG(status);
break;
} else if (!WIFEXITED(status)) {
D("subprocess didn't exit");
break;
} else if (WEXITSTATUS(status) >= 0) {
exit_code = WEXITSTATUS(status);
- D("subprocess exit code = %d", WEXITSTATUS(status));
+ ADB_LOG(Shell) << "subprocess " << pid_ << " exited with status " << exit_code;
break;
}
}