summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-08-17 15:08:01 +0200
committerGitHub <noreply@github.com>2020-08-17 15:08:01 +0200
commitb8fe579a883a9bd1618893615675bf368e63a035 (patch)
tree64c1e8a9eff195056015830448ebc98985c55745 /storage
parente8881e956ecdc230769f3f9b206dee6a8f2dbeb6 (diff)
parent020a904925aa64f0e45fcb765ed51f57eaef1cc9 (diff)
Merge pull request #14069 from vespa-engine/toregge/fix-format-string-in-test-and-set-helper
Use PRIx64 macro to specify that type of variable to be printed is uint64_t.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/testandsethelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/persistence/testandsethelper.cpp b/storage/src/vespa/storage/persistence/testandsethelper.cpp
index ed396cd522e..9232abc5c8a 100644
--- a/storage/src/vespa/storage/persistence/testandsethelper.cpp
+++ b/storage/src/vespa/storage/persistence/testandsethelper.cpp
@@ -69,7 +69,7 @@ TestAndSetHelper::retrieveAndMatch(spi::Context & context) {
auto docPtr = result.getDocumentPtr();
if (_docSelectionUp->contains(*docPtr) != document::select::Result::True) {
return api::ReturnCode(api::ReturnCode::TEST_AND_SET_CONDITION_FAILED,
- vespalib::make_string("Condition did not match document partition=%d, nodeIndex=%d bucket=%lx %s",
+ vespalib::make_string("Condition did not match document partition=%d, nodeIndex=%d bucket=%" PRIx64 " %s",
_thread._env._partition, _thread._env._nodeIndex, _cmd.getBucketId().getRawId(),
_cmd.hasBeenRemapped() ? "remapped" : ""));
}
@@ -81,7 +81,7 @@ TestAndSetHelper::retrieveAndMatch(spi::Context & context) {
}
return api::ReturnCode(api::ReturnCode::TEST_AND_SET_CONDITION_FAILED,
- vespalib::make_string("Document does not exist partition=%d, nodeIndex=%d bucket=%lx %s",
+ vespalib::make_string("Document does not exist partition=%d, nodeIndex=%d bucket=%" PRIx64 " %s",
_thread._env._partition, _thread._env._nodeIndex, _cmd.getBucketId().getRawId(),
_cmd.hasBeenRemapped() ? "remapped" : ""));
}