aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-06-05 16:58:27 +0200
committerMichael S. Tsirkin <mst@redhat.com>2019-06-16 16:16:52 -0400
commitf55411cf143f868e70cd769171fa1db8953a626e (patch)
tree6d84e1902a3db2606d36c020a9a115f083d514bd /contrib
parent24af03b946ce6889a435b2f3fc99daddde127874 (diff)
vhost-user: improve error report
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>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vhost-user-gpu/main.c2
-rw-r--r--contrib/vhost-user-input/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/vhost-user-gpu/main.c b/contrib/vhost-user-gpu/main.c
index e0b6df5b4d..0ef649ffaa 100644
--- a/contrib/vhost-user-gpu/main.c
+++ b/contrib/vhost-user-gpu/main.c
@@ -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);
}
diff --git a/contrib/vhost-user-input/main.c b/contrib/vhost-user-input/main.c
index 8b854117f5..54f882602a 100644
--- a/contrib/vhost-user-input/main.c
+++ b/contrib/vhost-user-input/main.c
@@ -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);