mirror of https://gitee.com/openkylin/qemu.git
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
This commit is contained in:
parent
98b5b7422f
commit
d121fcdf45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue