summaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-12 22:30:16 +0200
committerStefan Weil <sw@weilnetz.de>2012-04-15 21:25:18 +0200
commit0fee8f342884e96b29d7df28475d0c485a317d54 (patch)
tree560c2f81b98e15377063aeeb0596f0d6d982c787 /nbd.c
parentb0b0f1c964bb7643a6d4469ffd8157de84741d1f (diff)
downloadqemu-0fee8f342884e96b29d7df28475d0c485a317d54.tar.gz
qemu-0fee8f342884e96b29d7df28475d0c485a317d54.tar.bz2
qemu-0fee8f342884e96b29d7df28475d0c485a317d54.zip
nbd: Fix compiler warning (w64)
Portable printing of dev_offset (data type off_t) needs a type cast. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'nbd.c')
-rw-r--r--nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbd.c b/nbd.c
index 567e94e27a..406e555bc6 100644
--- a/nbd.c
+++ b/nbd.c
@@ -813,7 +813,7 @@ static void nbd_trip(void *opaque)
LOG("From: %" PRIu64 ", Len: %u, Size: %" PRIu64
", Offset: %" PRIu64 "\n",
request.from, request.len,
- (uint64_t)exp->size, exp->dev_offset);
+ (uint64_t)exp->size, (uint64_t)exp->dev_offset);
LOG("requested operation past EOF--bad client?");
goto invalid_request;
}