summaryrefslogtreecommitdiffstats
path: root/services/sensorservice
diff options
context:
space:
mode:
authorchh <chh@google.com>2014-11-25 19:04:12 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-25 19:04:12 +0000
commit22b99e3a9a5797deada897102e71e9a88ae46d24 (patch)
treef27fca34738790decf4aaa82a37548d0946e8983 /services/sensorservice
parent09efe0ac2a0f34eb951c9a2b91b2d15e3ab7b7ca (diff)
parent45aa022710165c321cdec9a475f269d6932fe1f3 (diff)
downloadframeworks_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.cpp9
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;