OSDN Git Service

wifi(implementation): Print out the cb object on failure
authorRoshan Pius <rpius@google.com>
Fri, 31 Mar 2017 01:01:54 +0000 (18:01 -0700)
committerRoshan Pius <rpius@google.com>
Wed, 5 Apr 2017 18:11:19 +0000 (11:11 -0700)
This should help us figure out if there are multiple callback objects in
wifi_chip when we see the IPC storm from
onDebugRingBufferDataAvailable().

Bug: 36599054
Test:  ACTS wifi tests.
Change-Id: I8c67032c59ecdd45824e131b59d890ce6c94fe25

wifi/1.0/default/wifi_chip.cpp

index 9c41a40..319e126 100644 (file)
@@ -855,7 +855,8 @@ WifiStatus WifiChip::registerDebugRingBufferCallback() {
     for (const auto& callback : shared_ptr_this->getEventCallbacks()) {
       if (!callback->onDebugRingBufferDataAvailable(hidl_status, data).isOk()) {
         LOG(ERROR) << "Failed to invoke onDebugRingBufferDataAvailable"
-                   << " callback";
+                   << " callback on: " << toString(callback);
+
       }
     }
   };