diff --git a/cmds/idmap2/idmap2d/Main.cpp b/cmds/idmap2/idmap2d/Main.cpp index 2707049fa6770..dad09a0e6fbe2 100644 --- a/cmds/idmap2/idmap2d/Main.cpp +++ b/cmds/idmap2/idmap2d/Main.cpp @@ -15,14 +15,14 @@ */ #define ATRACE_TAG ATRACE_TAG_RESOURCES +#define LOG_TAG "idmap2d" +#include "android-base/logging.h" #include #include #include #include // EXIT_{FAILURE,SUCCESS} -#include -#include #include "Idmap2Service.h" #include "android-base/macros.h" @@ -35,14 +35,17 @@ using android::status_t; using android::os::Idmap2Service; int main(int argc ATTRIBUTE_UNUSED, char** argv ATTRIBUTE_UNUSED) { + LOG(INFO) << "Starting"; IPCThreadState::disableBackgroundScheduling(true); status_t ret = BinderService::publish(); if (ret != android::OK) { + LOG(ERROR) << "Failed to start: " << ret; return EXIT_FAILURE; } sp ps(ProcessState::self()); ps->startThreadPool(); ps->giveThreadPoolName(); IPCThreadState::self()->joinThreadPool(); + LOG(INFO) << "Exiting"; return EXIT_SUCCESS; }