]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
vhost-user: improve error report
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 5 Jun 2019 14:58:27 +0000 (16:58 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 16 Jun 2019 20:16:52 +0000 (16:16 -0400)
g_printerr() needs a trailing \n

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190605145829.7674-4-marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/vhost-user-gpu/main.c
contrib/vhost-user-input/main.c

index e0b6df5b4d85bb6fdf325a0b4f1743f35c0c2497..0ef649ffaafe71f1d31b721bcf2ed79da5c34fda 100644 (file)
@@ -1170,7 +1170,7 @@ main(int argc, char *argv[])
         fd = opt_fdnum;
     }
     if (fd == -1) {
-        g_printerr("Invalid socket");
+        g_printerr("Invalid vhost-user socket.\n");
         exit(EXIT_FAILURE);
     }
 
index 8b854117f5e3aaf14c9bc1707f7a8a4f3db7edd7..54f882602a4cbda6447d37560bdf53debd38ca74 100644 (file)
@@ -377,7 +377,7 @@ main(int argc, char *argv[])
         fd = opt_fdnum;
     }
     if (fd == -1) {
-        g_printerr("Invalid socket");
+        g_printerr("Invalid vhost-user socket.\n");
         exit(EXIT_FAILURE);
     }
     vug_init(&vi.dev, fd, vi_panic, &vuiface);