summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/CameraService.cpp
diff options
context:
space:
mode:
authorAlex Ray <aray@google.com>2013-02-20 13:39:37 -0800
committerAlex Ray <aray@google.com>2013-02-20 14:55:34 -0800
commitc0dd54f1a77fb94ae69cc3ac5944d718bb6caa28 (patch)
treec90d5c1160e0dbcacf0791eb94e401fc206224cc /services/camera/libcameraservice/CameraService.cpp
parentfc900c922e219771d0cd3c075720d90026e1ca4a (diff)
downloadframeworks_av-c0dd54f1a77fb94ae69cc3ac5944d718bb6caa28.zip
frameworks_av-c0dd54f1a77fb94ae69cc3ac5944d718bb6caa28.tar.gz
frameworks_av-c0dd54f1a77fb94ae69cc3ac5944d718bb6caa28.tar.bz2
CameraService: Log camera module name
Explicitly logs camera module loaded. This is useful on systems with multiple camera modules installed. Also this make the camera service match audioflinger, which logs hardware module names as well. Change-Id: I280bf12df2d517f936916b8ba3cb662e671d0216
Diffstat (limited to 'services/camera/libcameraservice/CameraService.cpp')
-rw-r--r--services/camera/libcameraservice/CameraService.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
index 717e159..31e20c5 100644
--- a/services/camera/libcameraservice/CameraService.cpp
+++ b/services/camera/libcameraservice/CameraService.cpp
@@ -87,6 +87,7 @@ void CameraService::onFirstRef()
mNumberOfCameras = 0;
}
else {
+ ALOGI("Loaded \"%s\" camera module", mModule->common.name);
mNumberOfCameras = mModule->get_number_of_cameras();
if (mNumberOfCameras > MAX_CAMERAS) {
ALOGE("Number of cameras(%d) > MAX_CAMERAS(%d).",