mirror of
https://github.com/qemu/qemu.git
synced 2025-08-08 08:05:17 +00:00
NBD library: whitespace changes
Signed-off-by: Nick Thomas <nick@bytemark.co.uk> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
757179038c
commit
b2e3d87f04
5
nbd.c
5
nbd.c
@ -539,7 +539,9 @@ int nbd_send_request(int csock, struct nbd_request *request)
|
|||||||
cpu_to_be64w((uint64_t*)(buf + 16), request->from);
|
cpu_to_be64w((uint64_t*)(buf + 16), request->from);
|
||||||
cpu_to_be32w((uint32_t*)(buf + 24), request->len);
|
cpu_to_be32w((uint32_t*)(buf + 24), request->len);
|
||||||
|
|
||||||
TRACE("Sending request to client");
|
TRACE("Sending request to client: "
|
||||||
|
"{ .from = %" PRIu64", .len = %u, .handle = %" PRIu64", .type=%i}",
|
||||||
|
request->from, request->len, request->handle, request->type);
|
||||||
|
|
||||||
if (write_sync(csock, buf, sizeof(buf)) != sizeof(buf)) {
|
if (write_sync(csock, buf, sizeof(buf)) != sizeof(buf)) {
|
||||||
LOG("writing to socket failed");
|
LOG("writing to socket failed");
|
||||||
@ -549,7 +551,6 @@ int nbd_send_request(int csock, struct nbd_request *request)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int nbd_receive_request(int csock, struct nbd_request *request)
|
static int nbd_receive_request(int csock, struct nbd_request *request)
|
||||||
{
|
{
|
||||||
uint8_t buf[4 + 4 + 8 + 8 + 4];
|
uint8_t buf[4 + 4 + 8 + 8 + 4];
|
||||||
|
Loading…
Reference in New Issue
Block a user