mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user