Merge "log when waiting on a servicemanager" am: 377fc5aadd am: 300da2feb3 am: 49f1cf822c
Change-Id: I7429328b775b92664072ab7a585de372be2fcc67
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp
index 01cbd56..05f43e3 100644
--- a/libs/binder/IServiceManager.cpp
+++ b/libs/binder/IServiceManager.cpp
@@ -95,6 +95,7 @@
while (sm == nullptr) {
sm = interface_cast<AidlServiceManager>(ProcessState::self()->getContextObject(nullptr));
if (sm == nullptr) {
+ ALOGE("Waiting 1s on context object on %s.", ProcessState::self()->getDriverName().c_str());
sleep(1);
}
}