]> git.proxmox.com Git - qemu.git/commitdiff
nbd: Fix compiler warning (w64)
authorStefan Weil <sw@weilnetz.de>
Thu, 12 Apr 2012 20:30:16 +0000 (22:30 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:18 +0000 (21:25 +0200)
Portable printing of dev_offset (data type off_t) needs a type cast.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
nbd.c

diff --git a/nbd.c b/nbd.c
index 567e94e27a6f24957659e2990ca419cf246dcc3a..406e555bc69fcdd35c0a49f094ba17d2d43c6a9b 100644 (file)
--- 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;
     }