On Fri, Apr 01, 2016 at 01:16:28PM +0200, marcandre.lur...@redhat.com wrote: > +static void > +vubr_handle_slave_reply(VhostUserMsg *vmsg) > +{ > + DPRINT( > + "================== Vhost slave reply from QEMU > ==================\n"); > + DPRINT("Request: %s (%d)\n", vubr_slave_request_str[vmsg->request], > + vmsg->request); > + DPRINT("Flags: 0x%x\n", vmsg->flags); > + DPRINT("Size: %d\n", vmsg->size); > + > + switch (vmsg->request) { > + case VHOST_USER_SLAVE_SHUTDOWN: > + DPRINT("Shutdown success: 0x%016"PRIx64"\n", vmsg->payload.u64); > + if (vmsg->payload.u64 == 0) { > + exit(0); > + } > + default: > + DPRINT("Invalid slave reply"); > + }; ^^
Minor nit: redundant ';'. --yliu