diff options
author | Vincent Huang <vincent.huang@tw.synaptics.com> | 2022-10-27 17:44:05 +0800 |
---|---|---|
committer | Vincent Huang <vincent.huang@tw.synaptics.com> | 2022-10-27 17:50:51 +0800 |
commit | bd63cd1a4c7a9b16eebca51b00e7d95a546a2589 (patch) | |
tree | 3b1c7976053a3c38f30488d55310c1503e77446a | |
parent | 7522f2609b24bd5e184f944126e65e9521fcd399 (diff) | |
download | rmi4utils-bd63cd1a4c7a9b16eebca51b00e7d95a546a2589.tar.gz |
Hide unnecessary debug message in normal mode
-rwxr-xr-x | rmidevice/hiddevice.cpp | 4 |
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; } |