Log when hwservicemanager is trying to lazy start. am: cdd252f172 am: 11ecf6b1f2
am: bcd38fbcb0

Change-Id: I62ff58c3dc879c76249ad875e84f290c02b1d23e
diff --git a/ServiceManager.cpp b/ServiceManager.cpp
index c274d0e..4ef3315 100644
--- a/ServiceManager.cpp
+++ b/ServiceManager.cpp
@@ -246,6 +246,14 @@
 static void tryStartService(const std::string& fqName, const std::string& name) {
     using ::android::base::SetProperty;
 
+    // The "happy path" here is starting up a service that is configured as a
+    // lazy HAL, but we aren't sure that is the case. If the service doesn't
+    // have an 'interface' entry in its .rc file OR if the service is already
+    // running, then this will be a no-op. So, for instance, if a service is
+    // deadlocked during startup, you will see this message repeatedly.
+    LOG(INFO) << "Since " << fqName << "/" << name
+              << " is not registered, trying to start it as a lazy HAL.";
+
     std::thread([=] {
         bool success = SetProperty("ctl.interface_start", fqName + "/" + name);