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 <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2018-08-05 10:29:38 -07:00
parent f83db6e49e
commit 8c35b3b761
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -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) {