From 802692ed8e58afda36273b5b775391d970574bab Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jan 2014 07:19:10 -0800 Subject: [PATCH] os/KeyValueStore: fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ./os/KeyValueStore.h: In member function ‘std::string KeyValueStore::strip_object_key(uint64_t)’: warning: ./os/KeyValueStore.h:173:31: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=] Signed-off-by: Sage Weil --- src/os/KeyValueStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/KeyValueStore.h b/src/os/KeyValueStore.h index 6d08a13fef18e..17f977420957c 100644 --- a/src/os/KeyValueStore.h +++ b/src/os/KeyValueStore.h @@ -170,7 +170,7 @@ class KeyValueStore : public ObjectStore, string strip_object_key(uint64_t no) { char n[100]; - snprintf(n, 100, "%ld", no); + snprintf(n, 100, "%lld", no); return string(n); } -- 2.39.5