From 2423b33c2ce1952d7969edbbe1937400052ebb23 Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Wed, 6 Dec 2023 22:05:15 +0800 Subject: [PATCH] add Signed-off-by: hwzhangchuang --- common/include/input_hub.cpp | 3 +-- .../transport/src/distributed_input_source_transport.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 7b75e22..afbbecb 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -415,14 +415,13 @@ void InputHub::GetDeviceHandler() } if (eventItem.events & EPOLLHUP) { - DHLOGI("Removing device %s due to epoll hang-up event.", - device->identifier.name.c_str()); Device* device = GetDeviceByFdLocked(eventItem.data.fd); if (!device) { DHLOGE("Received unexpected epoll event 0x%08x for unknown fd %d.", eventItem.events, eventItem.data.fd); continue; } + DHLOGI("Removing device %s due to epoll hang-up event.", device->identifier.name.c_str()); deviceChanged_ = true; CloseDeviceLocked(*device); } diff --git a/services/source/transport/src/distributed_input_source_transport.cpp b/services/source/transport/src/distributed_input_source_transport.cpp index b253ff3..48fd7a7 100644 --- a/services/source/transport/src/distributed_input_source_transport.cpp +++ b/services/source/transport/src/distributed_input_source_transport.cpp @@ -651,7 +651,7 @@ int32_t DistributedInputSourceTransport::LatencyCount(const std::string &deviceI return ERR_DH_INPUT_SERVER_SOURCE_TRANSPORT_LATENCY_FAIL; } - DHLOGI("LatencyCount deviceId:%s, sessionId: %d, smsg:%s.", + DHLOGD("LatencyCount deviceId:%s, sessionId: %d, smsg:%s.", GetAnonyString(deviceId).c_str(), sessionId, SetAnonyId(smsg).c_str()); return DH_SUCCESS; }