]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/KeyValueStore: fix warning
authorSage Weil <sage@inktank.com>
Tue, 4 Feb 2014 00:54:52 +0000 (16:54 -0800)
committerSage Weil <sage@inktank.com>
Tue, 4 Feb 2014 01:50:32 +0000 (17:50 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/os/KeyValueStore.h

index 17f977420957c35ed0dc3be9c5a747e7e45c67cb..5a1d0f0410e60a7b0537939bd35a6bd5504cf86d 100644 (file)
@@ -170,7 +170,7 @@ class KeyValueStore : public ObjectStore,
 
   string strip_object_key(uint64_t no) {
     char n[100];
-    snprintf(n, 100, "%lld", no);
+    snprintf(n, 100, "%lld", (long long)no);
     return string(n);
   }