diff options
| -rw-r--r-- | libs/binder/tests/binderRpcTestService.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/tests/binderRpcTestService.cpp b/libs/binder/tests/binderRpcTestService.cpp index 714f0636f9..a27bd2f2e6 100644 --- a/libs/binder/tests/binderRpcTestService.cpp +++ b/libs/binder/tests/binderRpcTestService.cpp @@ -85,7 +85,9 @@ public: } }; -int main(int argc, const char* argv[]) { +int main(int argc, char* argv[]) { + android::base::InitLogging(argv, android::base::StderrLogger, android::base::DefaultAborter); + LOG_ALWAYS_FATAL_IF(argc != 3, "Invalid number of arguments: %d", argc); base::unique_fd writeEnd(atoi(argv[1])); base::unique_fd readEnd(atoi(argv[2])); |