Removed some extra spaces I'd added

This commit is contained in:
Patrick J Cherry
2018-02-02 20:46:25 +00:00
parent 6aa5907f5e
commit 9eb7072f49
3 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
#define FLAG_SEND_FUA (1 << 3) /* Send FUA (Force Unit Access) */ #define FLAG_SEND_FUA (1 << 3) /* Send FUA (Force Unit Access) */
/* values for command flag field */ /* values for command flag field */
#define CMD_FLAG_FUA (1 << 0) #define CMD_FLAG_FUA (1 << 0)
#if 0 #if 0
/* Not yet implemented by flexnbd */ /* Not yet implemented by flexnbd */
@@ -67,7 +67,7 @@ struct nbd_init_raw {
struct nbd_request_raw { struct nbd_request_raw {
__be32 magic; __be32 magic;
__be16 flags; __be16 flags;
__be16 type; /* == READ || == WRITE || == FLUSH */ __be16 type; /* == READ || == WRITE || == FLUSH */
nbd_handle_t handle; nbd_handle_t handle;
__be64 from; __be64 from;
@@ -90,7 +90,7 @@ struct nbd_init {
struct nbd_request { struct nbd_request {
uint32_t magic; uint32_t magic;
uint16_t flags; uint16_t flags;
uint16_t type; /* == READ || == WRITE || == DISCONNECT || == FLUSH */ uint16_t type; /* == READ || == WRITE || == DISCONNECT || == FLUSH */
nbd_handle_t handle; nbd_handle_t handle;
uint64_t from; uint64_t from;

View File

@@ -55,7 +55,7 @@ int nbd_check_hello( struct nbd_init_raw* init_raw, uint64_t* out_size, uint32_t
if ( NULL != out_size ) { if ( NULL != out_size ) {
*out_size = be64toh( init_raw->size ); *out_size = be64toh( init_raw->size );
} }
if ( NULL != out_flags ) { if ( NULL != out_flags ) {
*out_flags = be32toh( init_raw->flags ); *out_flags = be32toh( init_raw->flags );
} }

View File

@@ -204,7 +204,7 @@ void proxy_finish_connect_to_upstream( struct proxier *proxy, uint64_t size, uin
} }
proxy->upstream_size = size; proxy->upstream_size = size;
if ( proxy->upstream_flags == 0 ) { if ( proxy->upstream_flags == 0 ) {
info( "Upstream transmission flags set to %"PRIu32"", flags ); info( "Upstream transmission flags set to %"PRIu32"", flags );
} else if ( proxy->upstream_flags != flags ) { } else if ( proxy->upstream_flags != flags ) {