kevinrsa commented on issue #342:
URL: 
https://github.com/apache/rocketmq-client-cpp/issues/342#issuecomment-768118191


   > @kevinrsa I think use '%.*s' instead of '%s' is ok. Please test it, and 
welcome to pr.
   > 
   > ```c++
   > LOG_DEBUG("msgBody is:%.*s, msgBody length is:%d", pBody->getSize(), 
msg_body, pBody->getSize()); 
   > ```
   
   Thanks for the suggestion, it work.
   
   ---
   
   This is another valgrind error message, it should be '%d'.
   
   
https://github.com/apache/rocketmq-client-cpp/blob/9008c14d9c34a4f0b4a67417000612348157027e/src/transport/TcpRemotingClient.cpp#L625


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to