Comments

Unlike many other backends, this one leaves open error reporting to
its caller. Because the caller doesn't know what went wrong, this
results in a pretty useless error message.
Change it to report its errors. Improves user-hostile messages like
this one for "-chardev tty,id=foo,path=/dev/ttyy1"
chardev: opening backend "file" failed
to
qemu-system-x86_64: -chardev tty,id=foo,path=/dev/ttyy1: Can't open '/dev/ttyy1': No such file or directory
chardev: opening backend "file" failed
The useless "opening backend failed" message will be cleaned up
shortly.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
qemu-char.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)