diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 54388e472b8c6ed3e1ce1b47a761ccc2838fd7ec..069a8843231798e84461d450293ee28165d8f1d5 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -1330,7 +1330,7 @@ InputHub::Device::Device(int fd, int32_t id, const std::string &path) : next(nullptr), fd(fd), id(id), path(path), identifier({}), classes(0), enabled(false), isShare(false), isVirtual(fd < 0) { // Figure out the kinds of events the device reports. - DHLOGE("Ctor Device for get event mask, fd: %d, id: %d, path: %d", fd, id, path.c_str()); + DHLOGE("Ctor Device for get event mask, fd: %d, id: %d, path: %s", fd, id, path.c_str()); ioctl(fd, EVIOCGBIT(0, sizeof(evBitmask)), evBitmask); ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(keyBitmask)), keyBitmask); ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(absBitmask)), absBitmask); diff --git a/services/source/inputinject/src/distributed_input_node_manager.cpp b/services/source/inputinject/src/distributed_input_node_manager.cpp index ab9553ce77bfd9fb83898ae031ffeacdc0789848..40139e1c16916a3f31feef9100f110dc87ff620a 100644 --- a/services/source/inputinject/src/distributed_input_node_manager.cpp +++ b/services/source/inputinject/src/distributed_input_node_manager.cpp @@ -526,7 +526,7 @@ void DistributedInputNodeManager::ProcessInjectEvent(const std::shared_ptrwhen); InjectInputEvent(dhId, inputEvent); @@ -535,7 +535,7 @@ void DistributedInputNodeManager::ProcessInjectEvent(const std::shared_ptrwhen); InjectInputEvent(dhId, inputEvent); UpdateSpecEventFirstStatus(true);