qemu-char: convert parallel backend to data-driven creation
commit38bfb1a63d05d000f128ea740442955070d9ff57
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Oct 2015 07:49:28 +0000 (12 09:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Oct 2015 08:05:35 +0000 (19 10:05 +0200)
treefd8607577509b877f8fbbe193137d1fc1f582417
parent6511d39679f296162a90e71685651717a29e78e5
qemu-char: convert parallel backend to data-driven creation

Conversion to Error * brings better error messages; before:

    qemu-system-x86_64: -chardev id=serial,backend=parallel,path=vl.c: Failed to create chardev

After:

    qemu-system-x86_64: -chardev id=serial,backend=parallel,path=vl.c: not a parallel port: Inappropriate ioctl for device

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c