]> git.proxmox.com Git - qemu.git/commit
qemu-char: Print strerror message on failure
authorKevin Wolf <kwolf@redhat.com>
Wed, 1 Jun 2011 11:29:11 +0000 (13:29 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:18:57 +0000 (11:18 -0500)
commit6e1db57b2ac9025c2443c665a0d9e78748637b26
treecb4b73d71dccfc14737c713b07ee3bf89a3c0cf2
parent84682834eb8f654da5e03a92930d80b8ae0d3065
qemu-char: Print strerror message on failure

The only way for chardev drivers to communicate an error was to return a NULL
pointer, which resulted in an error message that said _that_ something went
wrong, but not _why_.

This patch changes the interface to return 0/-errno and updates
qemu_chr_open_opts to use strerror to display a more helpful error message.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
console.c
console.h
hw/baum.c
hw/msmouse.c
hw/msmouse.h
qemu-char.c
spice-qemu-char.c
ui/qemu-spice.h