Add version number to SensorService dump output.

Change-Id: I64f9482ade523ec3fafe14bff14db7196e32413f
This commit is contained in:
Aravind Akella 2014-10-18 16:37:13 -07:00
parent 60fd3feeca
commit 0b6acb2231
1 changed files with 2 additions and 1 deletions

View File

@ -243,9 +243,10 @@ status_t SensorService::dump(int fd, const Vector<String16>& /*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(),