diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2019-07-29 17:45:33 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2019-07-29 17:48:41 -0700 |
commit | 8ace50ebaec4c21c2673ac830463ea4a4db4c45e (patch) | |
tree | 262c88b64ce402a261378103d9c3888a419ae009 | |
parent | b6ef2f2dfe7fa8230436ccddce752c61f35a1cd1 (diff) | |
download | rmi4utils-8ace50ebaec4c21c2673ac830463ea4a4db4c45e.tar.gz |
Remove debug print statements
-rwxr-xr-x | rmi4update/rmi4update.cpp | 3 | ||||
-rwxr-xr-x | rmidevice/hiddevice.cpp | 14 |
2 files changed, 2 insertions, 15 deletions
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp index 36487a2..bc9acf7 100755 --- a/rmi4update/rmi4update.cpp +++ b/rmi4update/rmi4update.cpp @@ -1300,8 +1300,7 @@ int RMI4Update::WaitForIdle(int timeout_ms, bool readF34OnSucess) * with receiving attention reports and that should be fixed. */ fprintf(stderr, "RMI4Update::WaitForIdle Timed out waiting for attn report\n"); - } else if(rc == 1) - fprintf(stdout, "RMI4Update::WaitForIdle Got attention!\n"); + } } if (rc <= 0 || readF34OnSucess) { diff --git a/rmidevice/hiddevice.cpp b/rmidevice/hiddevice.cpp index 761fc4b..8cf778a 100755 --- a/rmidevice/hiddevice.cpp +++ b/rmidevice/hiddevice.cpp @@ -297,8 +297,6 @@ int HIDDevice::Read(unsigned short addr, unsigned char *buf, unsigned short len) else bytesPerRequest = len; - fprintf(stdout, "HIDDevice::Read R %x : ", addr); - for (totalBytesRead = 0; totalBytesRead < len; totalBytesRead += bytesReadPerRequest) { count = 0; if ((len - totalBytesRead) < bytesPerRequest) @@ -354,12 +352,6 @@ int HIDDevice::Read(unsigned short addr, unsigned char *buf, unsigned short len) addr += bytesPerRequest; } - - for(int i =0 ; i<len ; i++){ - fprintf(stdout, "%x ", buf[i]); - } - fprintf(stdout, "\n"); - return totalBytesRead; } @@ -378,11 +370,7 @@ int HIDDevice::Write(unsigned short addr, const unsigned char *buf, unsigned sho m_outputReport[HID_RMI4_WRITE_OUTPUT_ADDR] = addr & 0xFF; m_outputReport[HID_RMI4_WRITE_OUTPUT_ADDR + 1] = (addr >> 8) & 0xFF; memcpy(&m_outputReport[HID_RMI4_WRITE_OUTPUT_DATA], buf, len); - fprintf(stdout, "HIDDevice::Write W %x : ", addr); - for(int i =0 ; i<len ; i++){ - fprintf(stdout, "%x ", buf[i]); - } - fprintf(stdout, "\n"); + for (;;) { m_bCancel = false; count = write(m_fd, m_outputReport, m_outputReportSize); |