Re: [Qemu-devel] [PATCH 11/25] nbd: ask and print error information from qemu-sockets

2012-10-17 Thread Paolo Bonzini
Il 17/10/2012 16:51, Markus Armbruster ha scritto: >> > /* Basic flow for negotiation > The boilerplate pattern > > Error *local_err = NULL; > FOO(..., *local_err); > if (local_err) { > qerror_report_err(local_err); > error_free(local_err); > } > > is spreading.

Re: [Qemu-devel] [PATCH 11/25] nbd: ask and print error information from qemu-sockets

2012-10-17 Thread Markus Armbruster
Paolo Bonzini writes: > Before: > > $ qemu-system-x86_64 nbd:localhost:12345 > inet_connect_opts: connect(ipv4,yakj.usersys.redhat.com,127.0.0.1,12345): > Connection refused > qemu-system-x86_64: could not open disk image nbd:localhost:12345: > Connection refused > > After: > >

[Qemu-devel] [PATCH 11/25] nbd: ask and print error information from qemu-sockets

2012-10-10 Thread Paolo Bonzini
Before: $ qemu-system-x86_64 nbd:localhost:12345 inet_connect_opts: connect(ipv4,yakj.usersys.redhat.com,127.0.0.1,12345): Connection refused qemu-system-x86_64: could not open disk image nbd:localhost:12345: Connection refused After: $ x86_64-softmmu/qemu-system-x86_64 nbd:loc