summaryrefslogtreecommitdiff
path: root/camera/CameraBase.cpp
diff options
context:
space:
mode:
authorTobias Lindskog <tobias.lindskog@sonymobile.com>2016-11-01 14:25:52 +0100
committerHidenari Koshimae <hidenari.koshimae@sonymobile.com>2016-12-06 08:21:58 +0000
commit0ccb13b8dd4f3e412d20ccb8c7587f1fac4d1152 (patch)
tree509b10bbf71fc778697146592846791f7cf11781 /camera/CameraBase.cpp
parent653748414b0fd6056bcc3bd5b3917da4d1883531 (diff)
Log correct reason for camera connect failures
Show the detailed error when we have it, rather than trying to show it only when we don't. Bug: 33358375 Change-Id: Ifa7a4f8de7b35a0379224efd1e27d6745844b853
Diffstat (limited to 'camera/CameraBase.cpp')
-rw-r--r--camera/CameraBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/CameraBase.cpp b/camera/CameraBase.cpp
index 15d7715ac4..40f145aad5 100644
--- a/camera/CameraBase.cpp
+++ b/camera/CameraBase.cpp
@@ -131,7 +131,7 @@ sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId,
c->mStatus = NO_ERROR;
} else {
ALOGW("An error occurred while connecting to camera %d: %s", cameraId,
- (cs != nullptr) ? "Service not available" : ret.toString8().string());
+ (cs == nullptr) ? "Service not available" : ret.toString8().string());
c.clear();
}
return c;