summaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-02 21:18:00 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-02 21:18:00 +0000
commit975b092bd908029fb32e7372d8ae4de0d7412754 (patch)
treea49497082159114b0f66b67d40b9cd535c31518a /nbd.c
parentAdd -MT (diff)
downloadqemu-kvm-975b092bd908029fb32e7372d8ae4de0d7412754.tar.gz
qemu-kvm-975b092bd908029fb32e7372d8ae4de0d7412754.tar.bz2
qemu-kvm-975b092bd908029fb32e7372d8ae4de0d7412754.zip
Cleanup qemu-nbd related code, by Laurent Vivier.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4829 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'nbd.c')
-rw-r--r--nbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nbd.c b/nbd.c
index c7d63d348..c138d362e 100644
--- a/nbd.c
+++ b/nbd.c
@@ -388,8 +388,8 @@ int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset, o
}
if (len > sizeof(data)) {
- LOG("len (%u) is larger than max len (%u)",
- len, sizeof(data));
+ LOG("len (%u) is larger than max len (%lu)",
+ len, (unsigned long)sizeof(data));
errno = EINVAL;
return -1;
}