diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-06-17 13:42:11 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-06-17 15:05:55 +0100 |
commit | d121fcdf4520ed59c817d7f2846128a89772d497 (patch) | |
tree | 417141c1720320b5428f07e1b8555b17c904b2dd /nbd | |
parent | 98b5b7422fe1813040b499a4be415a9f514f1c10 (diff) | |
download | qemu-d121fcdf4520ed59c817d7f2846128a89772d497.zip qemu-d121fcdf4520ed59c817d7f2846128a89772d497.tar.gz qemu-d121fcdf4520ed59c817d7f2846128a89772d497.tar.bz2 |
nbd/client.c: Correct trace format string
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
Diffstat (limited to 'nbd')
-rw-r--r-- | nbd/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbd/client.c b/nbd/client.c index 287487c..78a7195 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -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); |