net: Improve parameter error reporting
commit10ae5a7a98f7c1d901fbb6658324e9c4c4fec8cf
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 May 2009 10:34:18 +0000 (8 12:34 +0200)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:49 +0000 (9 11:38 +0100)
tree7bc3ce8db3cd1efcf8de25c5cc150a5095cc3d46
parentc8decae2e135d2331268619aa07701c31595b6c9
net: Improve parameter error reporting

As host network devices can also be instantiated via the monitor, errors
should then be reported to the related monitor instead of stderr. This
requires larger refactoring, so this patch starts small with introducing
a helper to catch both cases and convert net_client_init as well as
net_slirp_redir.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
hw/pci-hotplug.c
net.c
net.h
vl.c