summaryrefslogtreecommitdiffstats
path: root/services/camera
diff options
context:
space:
mode:
authorDilip Gopalakrishna <gdilip@codeaurora.org>2015-10-08 16:41:09 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-25 08:33:46 -0700
commiteeffae051aa7d192e909f7d1cb6e3e925774d5cd (patch)
treed690a2588143a6992b5163ff47ce8386dc88dc54 /services/camera
parentdb91f16dcfa6b34a6802ae4daf280d34a09a9cf3 (diff)
downloadframeworks_av-eeffae051aa7d192e909f7d1cb6e3e925774d5cd.zip
frameworks_av-eeffae051aa7d192e909f7d1cb6e3e925774d5cd.tar.gz
frameworks_av-eeffae051aa7d192e909f7d1cb6e3e925774d5cd.tar.bz2
libcameraservice: Fix ALOG prints in FlashLight.
Add missing __FUNCTION__ arguments into log statements. Change-Id: I0256bad626d490fb9360a73c104afaad7a012a97
Diffstat (limited to 'services/camera')
-rw-r--r--services/camera/libcameraservice/CameraFlashlight.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/services/camera/libcameraservice/CameraFlashlight.cpp b/services/camera/libcameraservice/CameraFlashlight.cpp
index 280bb9d..fd23ef9 100644
--- a/services/camera/libcameraservice/CameraFlashlight.cpp
+++ b/services/camera/libcameraservice/CameraFlashlight.cpp
@@ -99,7 +99,8 @@ status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) {
status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) {
if (!mFlashlightMapInitialized) {
- ALOGE("%s: findFlashUnits() must be called before this method.");
+ ALOGE("%s: findFlashUnits() must be called before this method.",
+ __FUNCTION__);
return NO_INIT;
}
@@ -200,7 +201,8 @@ bool CameraFlashlight::hasFlashUnit(const String8& cameraId) {
bool CameraFlashlight::hasFlashUnitLocked(const String8& cameraId) {
if (!mFlashlightMapInitialized) {
- ALOGE("%s: findFlashUnits() must be called before this method.");
+ ALOGE("%s: findFlashUnits() must be called before this method.",
+ __FUNCTION__);
return false;
}
@@ -219,7 +221,8 @@ status_t CameraFlashlight::prepareDeviceOpen(const String8& cameraId) {
Mutex::Autolock l(mLock);
if (!mFlashlightMapInitialized) {
- ALOGE("%s: findFlashUnits() must be called before this method.");
+ ALOGE("%s: findFlashUnits() must be called before this method.",
+ __FUNCTION__);
return NO_INIT;
}
@@ -256,7 +259,8 @@ status_t CameraFlashlight::deviceClosed(const String8& cameraId) {
Mutex::Autolock l(mLock);
if (!mFlashlightMapInitialized) {
- ALOGE("%s: findFlashUnits() must be called before this method.");
+ ALOGE("%s: findFlashUnits() must be called before this method.",
+ __FUNCTION__);
return NO_INIT;
}