From eefced119bc568d773b86c34cd8bc9d9574638f6 Mon Sep 17 00:00:00 2001 From: Patrick Tjin Date: Wed, 5 Feb 2014 15:06:03 -0800 Subject: [PATCH] Add uid to sensorservice's dump of active connections Change-Id: I1c365157bcd28a93635dbde4a8d91c79750e03ae --- services/sensorservice/SensorService.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index a2f433279..890717a2f 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -750,11 +750,12 @@ void SensorService::SensorEventConnection::dump(String8& result) { Mutex::Autolock _l(mConnectionLock); for (size_t i = 0; i < mSensorInfo.size(); ++i) { const FlushInfo& flushInfo = mSensorInfo.valueAt(i); - result.appendFormat("\t %s | status: %s | pending flush events %d\n", + result.appendFormat("\t %s | status: %s | pending flush events %d | uid %d\n", mService->getSensorName(mSensorInfo.keyAt(i)).string(), flushInfo.mFirstFlushPending ? "First flush pending" : "active", - flushInfo.mPendingFlushEventsToSend); + flushInfo.mPendingFlushEventsToSend, + mUid); } }