diff options
author | chh <chh@google.com> | 2014-11-25 19:04:12 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-25 19:04:12 +0000 |
commit | 22b99e3a9a5797deada897102e71e9a88ae46d24 (patch) | |
tree | f27fca34738790decf4aaa82a37548d0946e8983 /services/sensorservice | |
parent | 09efe0ac2a0f34eb951c9a2b91b2d15e3ab7b7ca (diff) | |
parent | 45aa022710165c321cdec9a475f269d6932fe1f3 (diff) | |
download | frameworks_native-22b99e3a9a5797deada897102e71e9a88ae46d24.zip frameworks_native-22b99e3a9a5797deada897102e71e9a88ae46d24.tar.gz frameworks_native-22b99e3a9a5797deada897102e71e9a88ae46d24.tar.bz2 |
am 45aa0227: Merge "Fix potential format string vulnerability"
* commit '45aa022710165c321cdec9a475f269d6932fe1f3':
Fix potential format string vulnerability
Diffstat (limited to 'services/sensorservice')
-rw-r--r-- | services/sensorservice/SensorService.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index c316ef6..a857366 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -647,12 +647,9 @@ Vector<Sensor> SensorService::getSensorList() if (canAccessSensor(sensor)) { accessibleSensorList.add(sensor); } else { - String8 infoMessage; - infoMessage.appendFormat( - "Skipped sensor %s because it requires permission %s", - sensor.getName().string(), - sensor.getRequiredPermission().string()); - ALOGI(infoMessage.string()); + ALOGI("Skipped sensor %s because it requires permission %s", + sensor.getName().string(), + sensor.getRequiredPermission().string()); } } return accessibleSensorList; |