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>
This commit is contained in:
Marc-André Lureau 2019-06-05 16:58:27 +02:00 committed by Michael S. Tsirkin
parent 24af03b946
commit f55411cf14
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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);