Merge pull request #2732 from stiga-huang/fix-perror
THRIFT-5670: lib: cpp: Fix wrong timeout error message
diff --git a/lib/cpp/src/thrift/transport/TSocket.cpp b/lib/cpp/src/thrift/transport/TSocket.cpp
index d8accad..6c8a1c8 100644
--- a/lib/cpp/src/thrift/transport/TSocket.cpp
+++ b/lib/cpp/src/thrift/transport/TSocket.cpp
@@ -569,7 +569,7 @@
throw TTransportException(TTransportException::INTERRUPTED, "Interrupted");
}
} else /* ret == 0 */ {
- GlobalOutput.perror("TSocket::read() THRIFT_EAGAIN (timed out) after %f ms", recvTimeout_);
+ GlobalOutput.printf("TSocket::read() THRIFT_EAGAIN (timed out) after %d ms", recvTimeout_);
throw TTransportException(TTransportException::TIMED_OUT, "THRIFT_EAGAIN (timed out)");
}