szaszm commented on a change in pull request #744: MINIFICPP-1171 - Fix "%ll" 
format strings in log lines
URL: https://github.com/apache/nifi-minifi-cpp/pull/744#discussion_r387613649
 
 

 ##########
 File path: extensions/standard-processors/processors/GetTCP.cpp
 ##########
 @@ -197,7 +197,7 @@ void GetTCP::onSchedule(const 
std::shared_ptr<core::ProcessContext> &context, co
               socket_ptr->closeStream();
               return -1;
             }
-            logger_->log_info("Sleeping for %ll msec before attempting to 
reconnect", reconnect_interval_);
+            logger_->log_info("Sleeping for %llu msec before attempting to 
reconnect", reconnect_interval_);
 
 Review comment:
   Use `PRIu64` from `<cinttypes>` for `uint64_t`. `llu` is meant to be used 
for `unsigned long long int`, which is not guaranteed to be the same as 
`uint64_t`. It is not the same on my platform.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to