diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-07 20:39:25 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-07 20:39:25 +0100 |
commit | ce633f37f0e3d4b141ca023f2d8e1b3d0e20265c (patch) | |
tree | 147d0d5e590ab36e09cfa09e40916e06865e2094 /storage | |
parent | 812324f02d0ed2ec08bf6b71acce5df766a40f53 (diff) |
Fix format strings.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/distributor/operations/external/visitoroperation.cpp | 4 | ||||
-rw-r--r-- | storage/src/vespa/storage/storageserver/statemanager.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/distributor/operations/external/visitoroperation.cpp b/storage/src/vespa/storage/distributor/operations/external/visitoroperation.cpp index 471f8b7bb95..70dd215cc1d 100644 --- a/storage/src/vespa/storage/distributor/operations/external/visitoroperation.cpp +++ b/storage/src/vespa/storage/distributor/operations/external/visitoroperation.cpp @@ -124,7 +124,7 @@ VisitorOperation::timeLeft() const noexcept LOG(spam, - "Checking if visitor has timed out: elapsed=%ld ms, timeout=%ld ms", + "Checking if visitor has timed out: elapsed=%" PRId64 " ms, timeout=%" PRId64 " ms", vespalib::count_ms(elapsed), vespalib::count_ms(_msg->getTimeout())); @@ -624,7 +624,7 @@ VisitorOperation::startNewVisitors(DistributorMessageSender& sender) markOperationAsFailed( api::ReturnCode(api::ReturnCode::ABORTED, vespalib::make_string( - "Timeout of %ld ms is running out", + "Timeout of %" PRId64 " ms is running out", vespalib::count_ms(_msg->getTimeout())))); } diff --git a/storage/src/vespa/storage/storageserver/statemanager.cpp b/storage/src/vespa/storage/storageserver/statemanager.cpp index 9afc8b2d3a5..069ba1b8b92 100644 --- a/storage/src/vespa/storage/storageserver/statemanager.cpp +++ b/storage/src/vespa/storage/storageserver/statemanager.cpp @@ -462,8 +462,8 @@ StateManager::onGetNodeState(const api::GetNodeStateCommand::SP& cmd) { int64_t msTimeout = vespalib::count_ms(cmd->getTimeout()); LOG(debug, "Received get node state request with timeout of " - "%ld milliseconds. Scheduling to be answered in " - "%ld milliseconds unless a node state change " + "%" PRId64 " milliseconds. Scheduling to be answered in " + "%" PRId64 " milliseconds unless a node state change " "happens before that time.", msTimeout, msTimeout * 800 / 1000); TimeStatePair pair( |