Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce580c4e authored by Ravneet's avatar Ravneet
Browse files

Add thread id to error log for Camera Watchdog

- Add thread id to the error log when the camera
watchdog is triggered for debuggability

Test: CTS tests
Bug: 245795699
Change-Id: I3992b76d18c461c937f30d28b81d1c8071dc90cf
parent 207650af
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ bool CameraServiceWatchdog::threadLoop()
            tidToCycleCounterMap[currentThreadId]++;

            if (tidToCycleCounterMap[currentThreadId] >= mMaxCycles) {
                ALOGW("CameraServiceWatchdog triggering abort for pid: %d", getpid());
                ALOGW("CameraServiceWatchdog triggering abort for pid: %d tid: %d", getpid(),
                        currentThreadId);
                // We use abort here so we can get a tombstone for better
                // debugging.
                abort();