summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2021-04-01 20:50:51 +0000
committerSteven Moreland <smoreland@google.com>2021-04-01 20:50:51 +0000
commit7af6d0fecc518f5418aa6a2c78e9b6a3f95bb7f4 (patch)
treef3b2780eae5f9fcc55a1255a22a0f7c245695d62
parent49e5b5eaccc9f9dd83919c69d49f5544e159dbae (diff)
light: downgrade hardware open error
If a certain type of light isn't available, we want to indicate this, but it isn't an error. Bug: N/A (was asked to do this for some fixit) Test: N/A Change-Id: I69038964db22425a7e9b2c722ddd4f38bf5bea2e
-rw-r--r--light/2.0/default/Light.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/2.0/default/Light.cpp b/light/2.0/default/Light.cpp
index 5484d2db43..3febf6b183 100644
--- a/light/2.0/default/Light.cpp
+++ b/light/2.0/default/Light.cpp
@@ -140,7 +140,7 @@ light_device_t* getLightDevice(const char* name) {
ret = hwModule->methods->open(hwModule, name,
reinterpret_cast<hw_device_t**>(&lightDevice));
if (ret != 0) {
- ALOGE("light_open %s %s failed: %d", LIGHTS_HARDWARE_MODULE_ID, name, ret);
+ ALOGI("light_open %s %s failed: %d", LIGHTS_HARDWARE_MODULE_ID, name, ret);
}
} else {
ALOGE("hw_get_module %s %s failed: %d", LIGHTS_HARDWARE_MODULE_ID, name, ret);