From 0b6acb2231baed861488f2d181621272d0658d25 Mon Sep 17 00:00:00 2001 From: Aravind Akella Date: Sat, 18 Oct 2014 16:37:13 -0700 Subject: [PATCH] Add version number to SensorService dump output. Change-Id: I64f9482ade523ec3fafe14bff14db7196e32413f --- services/sensorservice/SensorService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index 0f945f765..dc8fa649d 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -243,9 +243,10 @@ status_t SensorService::dump(int fd, const Vector& /*args*/) const Sensor& s(mSensorList[i]); const sensors_event_t& e(mLastEventSeen.valueFor(s.getHandle())); result.appendFormat( - "%-15s| %-10s| %-20s| 0x%08x | \"%s\" | type=%d |", + "%-15s| %-10s| version=%d |%-20s| 0x%08x | \"%s\" | type=%d |", s.getName().string(), s.getVendor().string(), + s.getVersion(), s.getStringType().string(), s.getHandle(), s.getRequiredPermission().string(),