summaryrefslogtreecommitdiffstats
path: root/services
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
commit53c8ad31435bfb7c71a5b04dfc0314ac8f899219 (patch)
tree50b6e081a48441cf30ffe1afc47741c7340c7748 /services
parent2f8025eef6c681920579f75d298a262b12a80ac9 (diff)
downloadframeworks_av-53c8ad31435bfb7c71a5b04dfc0314ac8f899219.zip
frameworks_av-53c8ad31435bfb7c71a5b04dfc0314ac8f899219.tar.gz
frameworks_av-53c8ad31435bfb7c71a5b04dfc0314ac8f899219.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')
-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).",