From efd88e917d8ed36d367c5c358f06f1d7ac575d4d Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Tue, 31 Oct 2023 14:07:34 +0800 Subject: [PATCH] modify log Signed-off-by: hwzhangchuang --- common/include/input_hub.cpp | 2 +- .../source/inputinject/src/distributed_input_node_manager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 54388e4..069a884 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 ab9553c..40139e1 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); -- Gitee