aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-01-07 20:39:25 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-01-07 20:39:25 +0100
commitce633f37f0e3d4b141ca023f2d8e1b3d0e20265c (patch)
tree147d0d5e590ab36e09cfa09e40916e06865e2094 /config
parent812324f02d0ed2ec08bf6b71acce5df766a40f53 (diff)
Fix format strings.
Diffstat (limited to 'config')
-rw-r--r--config/src/vespa/config/subscription/configsubscriptionset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/vespa/config/subscription/configsubscriptionset.cpp b/config/src/vespa/config/subscription/configsubscriptionset.cpp
index 0b73929c738..949e36c046b 100644
--- a/config/src/vespa/config/subscription/configsubscriptionset.cpp
+++ b/config/src/vespa/config/subscription/configsubscriptionset.cpp
@@ -40,7 +40,7 @@ ConfigSubscriptionSet::acquireSnapshot(milliseconds timeoutInMillis, bool ignore
int64_t lastGeneration = _currentGeneration;
bool inSync = false;
- LOG(debug, "Going into nextConfig loop, time left is %ld", timeLeft.count());
+ LOG(debug, "Going into nextConfig loop, time left is %" PRId64, timeLeft.count());
while (!isClosed() && (timeLeft.count() >= 0) && !inSync) {
size_t numChanged = 0;
size_t numGenerationChanged = 0;
@@ -79,7 +79,7 @@ ConfigSubscriptionSet::acquireSnapshot(milliseconds timeoutInMillis, bool ignore
lastGeneration = generation;
timeLeft = timeoutInMillis - duration_cast<milliseconds>(steady_clock::now() - startTime);
if (!inSync && (timeLeft.count() > 0)) {
- std::this_thread::sleep_for(std::chrono::milliseconds(std::min(10l, timeLeft.count())));
+ std::this_thread::sleep_for(std::chrono::milliseconds(std::min(INT64_C(10), timeLeft.count())));
} else {
break;
}