]> git.proxmox.com Git - mirror_qemu.git/commitdiff
nbd/client.c: Correct trace format string
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Jun 2016 12:42:11 +0000 (13:42 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Jun 2016 14:05:55 +0000 (15:05 +0100)
The trace format string in nbd_send_request uses PRIu16 for
request->type, but request->type is a uint32_t. This provokes
compiler warnings on the OSX clang. Use PRIu32 instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1466167331-17063-1-git-send-email-peter.maydell@linaro.org

nbd/client.c

index 287487c6c21adb5c4cfe796e671eb108f914ae19..78a7195c45880115a472c57215970ac1426f59a7 100644 (file)
@@ -711,7 +711,7 @@ ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request)
 
     TRACE("Sending request to server: "
           "{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64
-          ", .type=%" PRIu16 " }",
+          ", .type=%" PRIu32 " }",
           request->from, request->len, request->handle, request->type);
 
     stl_be_p(buf, NBD_REQUEST_MAGIC);