From 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 22 May 2010 08:02:12 +0000 Subject: Fix %lld or %llx printf format use Signed-off-by: Blue Swirl --- nbd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nbd.c') diff --git a/nbd.c b/nbd.c index 337eeba873..a9f295f2bb 100644 --- a/nbd.c +++ b/nbd.c @@ -353,8 +353,7 @@ int nbd_init(int fd, int csock, off_t size, size_t blocksize) return -1; } - TRACE("Setting size to %llu block(s)", - (unsigned long long)(size / blocksize)); + TRACE("Setting size to %zd block(s)", (size_t)(size / blocksize)); if (ioctl(fd, NBD_SET_SIZE_BLOCKS, size / blocksize) == -1) { int serrno = errno; -- cgit v1.2.3