NBD library: whitespace changes

Signed-off-by: Nick Thomas <nick@bytemark.co.uk>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
master
Nick Thomas 2011-02-22 15:44:51 +00:00 committed by Kevin Wolf
parent 757179038c
commit b2e3d87f04
1 changed files with 363 additions and 362 deletions

5
nbd.c
View File

@ -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_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)) {
LOG("writing to socket failed");
@ -549,7 +551,6 @@ int nbd_send_request(int csock, struct nbd_request *request)
return 0;
}
static int nbd_receive_request(int csock, struct nbd_request *request)
{
uint8_t buf[4 + 4 + 8 + 8 + 4];