summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-15 14:43:31 -0700
committerAndreas Gampe <agampe@google.com>2015-03-17 20:51:38 +0000
commit02ffb2aad943ae2b16b505ca6b3a772ad6ed4df7 (patch)
tree7ed8352bb9c9b7065f7b1ae64f7b2cf3a6b5549b /core
parent30fcd2aa8a87ca97e1d6dbc3203c3a485a56dac9 (diff)
downloadframeworks_base-02ffb2aad943ae2b16b505ca6b3a772ad6ed4df7.zip
frameworks_base-02ffb2aad943ae2b16b505ca6b3a772ad6ed4df7.tar.gz
frameworks_base-02ffb2aad943ae2b16b505ca6b3a772ad6ed4df7.tar.bz2
Frameworks/base: Fix format string in Camera
One cannot print a boolean with %d. That will result in an exception. Bug: 19797138 Change-Id: I86c42ea834cebebaecff8463637cc9de14d1fc88
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/camera2/CameraManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/hardware/camera2/CameraManager.java b/core/java/android/hardware/camera2/CameraManager.java
index b6bb33b..a25b94a 100644
--- a/core/java/android/hardware/camera2/CameraManager.java
+++ b/core/java/android/hardware/camera2/CameraManager.java
@@ -774,10 +774,10 @@ public final class CameraManager {
if (DEBUG) {
Log.v(TAG,
String.format(
- "Device status was previously available (%d), " +
- " and is now again available (%d)" +
+ "Device status was previously available (%b), " +
+ " and is now again available (%b)" +
"so no new client visible update will be sent",
- isAvailable(status), isAvailable(status)));
+ isAvailable(oldStatus), isAvailable(status)));
}
return;
}