From fc2f9bdb1ca538ccda1e3c690e54724122456b3c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 14 Oct 2017 00:47:45 +0200 Subject: [PATCH] librbd/test_librbd.cc: fix format qualifiers Fix for: [src/test/librbd/test_librbd.cc:2610]: (warning) %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [src/test/librbd/test_librbd.cc:2610]: (warning) %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [src/test/librbd/test_librbd.cc:2610]: (warning) %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. Signed-off-by: Danny Al-Gaaf --- src/test/librbd/test_librbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index 7893244ed85..198ea97e2c6 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -2607,7 +2607,7 @@ TEST_F(TestLibRBD, 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 %lld obj_size %lld parent_pool %lld\n", + printf("parent info: size %llu obj_size %llu parent_pool %llu\n", (unsigned long long)pinfo.size, (unsigned long long)pinfo.obj_size, (unsigned long long)pinfo.parent_pool); ASSERT_EQ(pinfo.size, 4UL<<20);