Explorar el Código

sm8450-common: udfps: Improve fod press poll logging

Change-Id: I9999722660f3d56519463c8e3762b9f48ef0208b
Arian hace 1 año
padre
commit
6cfbe86b6d
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      udfps/UdfpsHandler.cpp

+ 3 - 2
udfps/UdfpsHandler.cpp

@@ -69,10 +69,11 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
         touch_fd_ = android::base::unique_fd(open(TOUCH_DEV_PATH, O_RDWR));
         disp_fd_ = android::base::unique_fd(open(DISP_FEATURE_PATH, O_RDWR));
 
+        // Thread to notify fingeprint hwmodule about fod presses
         std::thread([this]() {
             int fd = open(FOD_PRESS_STATUS_PATH, O_RDONLY);
             if (fd < 0) {
-                LOG(ERROR) << "failed to open fd, err: " << fd;
+                LOG(ERROR) << "failed to open " << FOD_PRESS_STATUS_PATH << " , err: " << fd;
                 return;
             }
 
@@ -85,7 +86,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
             while (true) {
                 int rc = poll(&fodPressStatusPoll, 1, -1);
                 if (rc < 0) {
-                    LOG(ERROR) << "failed to poll fd, err: " << rc;
+                    LOG(ERROR) << "failed to poll " << FOD_PRESS_STATUS_PATH << ", err: " << rc;
                     continue;
                 }