aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Huang <vincent.huang@tw.synaptics.com>2022-10-27 17:44:05 +0800
committerVincent Huang <vincent.huang@tw.synaptics.com>2022-10-27 17:50:51 +0800
commitbd63cd1a4c7a9b16eebca51b00e7d95a546a2589 (patch)
tree3b1c7976053a3c38f30488d55310c1503e77446a
parent7522f2609b24bd5e184f944126e65e9521fcd399 (diff)
downloadrmi4utils-bd63cd1a4c7a9b16eebca51b00e7d95a546a2589.tar.gz
Hide unnecessary debug message in normal mode
-rwxr-xr-xrmidevice/hiddevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/rmidevice/hiddevice.cpp b/rmidevice/hiddevice.cpp
index 1cef2e5..b81d70a 100755
--- a/rmidevice/hiddevice.cpp
+++ b/rmidevice/hiddevice.cpp
@@ -470,7 +470,9 @@ int HIDDevice::ToggleInterruptMask(bool enable)
// However, it might have no action even we set this feature with specific value.
// Need FW team's help to query more information about the existence of functions.
if (!hasVendorDefineLIDMode) {
- fprintf(stdout, "no LID mode feature, return\n");
+ if (m_hasDebug) {
+ fprintf(stdout, "no LID mode feature, return\n");
+ }
return 0;
}