From: Patrick Donnelly Date: Sun, 5 Aug 2018 17:29:38 +0000 (-0700) Subject: client: fix compile warning X-Git-Tag: v14.0.1~659^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8c35b3b76180f0fd4efb942fd01e03377d2971ee;p=ceph-ci.git client: fix compile warning /home/pdonnell/ceph/src/client/fuse_ll.cc: In member function ‘int CephFuse::Handle::init(int, const char**)’: /home/pdonnell/ceph/src/client/fuse_ll.cc:1126:59: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘Option::size_t’ [-Wformat=] sprintf(strsplice, "max_write=%" PRIu64, fuse_max_write); Signed-off-by: Patrick Donnelly --- diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 6251d7d4715..8027b2fcafd 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -1123,7 +1123,7 @@ int CephFuse::Handle::init(int argc, const char *argv[]) char strsplice[65]; newargv[newargc++] = "-o"; newargv[newargc++] = strsplice; - sprintf(strsplice, "max_write=%" PRIu64, fuse_max_write); + sprintf(strsplice, "max_write=%zu", (size_t)fuse_max_write); newargv[newargc++] = strsplice; } if (fuse_atomic_o_trunc) {