diff options
author | Sage Weil <sage@inktank.com> | 2012-07-12 16:14:33 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-12 16:14:41 -0700 |
commit | 10ec5926c3e09806b4d75689b9af8781c79a6f9d (patch) | |
tree | 62a9f2f9a5f0b8c6afa6dbfbea3de410a8704349 | |
parent | 5450567a6769b64ace385140ffb645d9d805e354 (diff) | |
download | ceph-10ec5926c3e09806b4d75689b9af8781c79a6f9d.tar.gz |
test_librbd: fix warnings
test/test_librbd.cc: In member function ‘virtual void LibRBD_TestClone_Test::TestBody()’:
warning: test/test_librbd.cc:1040:111: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat]
warning: test/test_librbd.cc:1040:111: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat]
warning: test/test_librbd.cc:1040:111: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t {aka long long int}’ [-Wformat]
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/test/test_librbd.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_librbd.cc b/src/test/test_librbd.cc index 6c84cbff05b..9132157d795 100644 --- a/src/test/test_librbd.cc +++ b/src/test/test_librbd.cc @@ -1037,7 +1037,9 @@ TEST(LibRBD, TestClone) ASSERT_EQ(overlap, 2UL<<20); ASSERT_EQ(cinfo.size, 5UL<<20); ASSERT_EQ(0, rbd_stat(parent, &pinfo, sizeof(pinfo))); - printf("parent info: size %ld obj_size %ld parent_pool %ld\n", pinfo.size, pinfo.obj_size, pinfo.parent_pool); + printf("parent info: size %lld obj_size %lld parent_pool %lld\n", + (unsigned long long)pinfo.size, (unsigned long long)pinfo.obj_size, + (unsigned long long)pinfo.parent_pool); ASSERT_EQ(pinfo.size, 4UL<<20); printf("sized up clone, changed size but not overlap or parent's size\n"); |