aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-02 09:25:14 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-23 13:54:57 +0200
commit4f085c822947068c785be8c1f27d1ad4e3215149 (patch)
treedd63cba7b0c065cca2a3d9bc06d8174499699154 /qemu-char.c
parent11663b553b0815b266b6a9060ab9702cf7a5334c (diff)
qemu-sockets: add error propagation to inet_dgram_opts
Before: $ qemu-system-x86_64 -monitor udp:localhost:631@localhost:631 inet_dgram_opts: bind(ipv4,127.0.0.1,631): OK inet_dgram_opts failed chardev: opening backend "udp" failed After: $ x86_64-softmmu/qemu-system-x86_64 -monitor udp:localhost:631@localhost:631 qemu-system-x86_64: -monitor udp:localhost:631@localhost:631: Failed to bind socket: Address already in use chardev: opening backend "udp" failed Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c
index 04b5c236df..afe2bfb4dd 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2105,7 +2105,6 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)
fd = inet_dgram_opts(opts, &local_err);
if (fd < 0) {
- fprintf(stderr, "inet_dgram_opts failed\n");
goto return_err;
}