diff options
author | Tobias Lindskog <tobias.lindskog@sonymobile.com> | 2016-11-01 14:25:52 +0100 |
---|---|---|
committer | Hidenari Koshimae <hidenari.koshimae@sonymobile.com> | 2016-12-06 08:21:58 +0000 |
commit | 0ccb13b8dd4f3e412d20ccb8c7587f1fac4d1152 (patch) | |
tree | 509b10bbf71fc778697146592846791f7cf11781 /camera/CameraBase.cpp | |
parent | 653748414b0fd6056bcc3bd5b3917da4d1883531 (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.cpp | 2 |
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; |