]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
nbd: Miscellaneous typo fixes.
authorHani Benhabiles <kroosec@gmail.com>
Mon, 12 May 2014 23:35:16 +0000 (00:35 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 23 May 2014 20:07:29 +0000 (00:07 +0400)
Signed-off-by: Hani Benhabiles <hani@linux.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
nbd.c
qemu-nbd.c
qemu-nbd.texi

diff --git a/nbd.c b/nbd.c
index e5084b6e7cde6e2265434c448febf9e95bc81f51..e0d032c2523a09ff40cdd3260772e3011b05090c 100644 (file)
--- a/nbd.c
+++ b/nbd.c
@@ -306,7 +306,7 @@ static int nbd_send_negotiate(NBDClient *client)
         [ 8 ..  15]   magic        (NBD_CLIENT_MAGIC)
         [16 ..  23]   size
         [24 ..  25]   server flags (0)
-        [24 ..  27]   export flags
+        [26 ..  27]   export flags
         [28 .. 151]   reserved     (0)
 
        Negotiation header with options, part 1:
index f70e4b0dfc4edfd3502a9978a7667f91437eaa93..cd6bd50faef91652fef98e00111727e03d0e4851 100644 (file)
@@ -294,7 +294,7 @@ static void *nbd_client_thread(void *arg)
     fd = open(device, O_RDWR);
     if (fd < 0) {
         /* Linux-only, we can use %m in printf.  */
-        fprintf(stderr, "Failed to open %s: %m", device);
+        fprintf(stderr, "Failed to open %s: %m\n", device);
         goto out_socket;
     }
 
index 0a7e01385c44699f5aa4e5f23b191853aa179e57..46fd483eb8395ba48183145222b9c190a17d2607 100644 (file)
@@ -15,7 +15,7 @@ Export QEMU disk image using NBD protocol.
 @item @var{filename}
  is a disk image filename
 @item -p, --port=@var{port}
-  port to listen on (default @samp{1024})
+  port to listen on (default @samp{10809})
 @item -o, --offset=@var{offset}
   offset into the image
 @item -b, --bind=@var{iface}