From 547c7eead64afa12d08a7ed56bcc287f98178006 Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Mon, 11 Dec 2023 14:26:46 +0800 Subject: [PATCH] remove debug log that too much Signed-off-by: hwzhangchuang --- common/include/input_hub.cpp | 4 ---- utils/src/dinput_utils_tool.cpp | 1 - 2 files changed, 5 deletions(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 141c761..46a456a 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -107,7 +107,6 @@ bool InputHub::IsInputNodeNoNeedScan(const std::string &path) } if (path.find(MOUSE_NODE_KEY) != std::string::npos) { - DHLOGD("Skip mouse node for no permission, path: %s", path.c_str()); return true; } @@ -116,7 +115,6 @@ bool InputHub::IsInputNodeNoNeedScan(const std::string &path) void InputHub::ScanAndRecordInputDevices() { - DHLOGD("Scan local input devices."); ScanInputDevices(DEVICE_PATH); { @@ -506,12 +504,10 @@ std::vector InputHub::GetAllInputDevices() void InputHub::ScanInputDevices(const std::string &dirName) { - DHLOGD("ScanInputDevices enter, dirName %s.", dirName.c_str()); std::vector inputDevPaths; ScanInputDevicesPath(dirName, inputDevPaths); for (const auto &tempPath: inputDevPaths) { if (IsInputNodeNoNeedScan(tempPath)) { - DHLOGD("This input node path should skip. Path: %s", tempPath.c_str()); continue; } OpenInputDeviceLocked(tempPath); diff --git a/utils/src/dinput_utils_tool.cpp b/utils/src/dinput_utils_tool.cpp index ecd2273..167a59d 100644 --- a/utils/src/dinput_utils_tool.cpp +++ b/utils/src/dinput_utils_tool.cpp @@ -351,7 +351,6 @@ void ScanInputDevicesPath(const std::string &dirName, std::vector & continue; } std::string tmpDevName = dirName + "/" + std::string(de->d_name); - DHLOGD("Find input node path: %s", tmpDevName.c_str()); vecInputDevPath.push_back(tmpDevName); } closedir(dir);