diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-21 19:56:32 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-21 19:56:32 +0000 |
commit | 5c8be678a912e3ce2a5289bfec981f98d3dd495f (patch) | |
tree | 9be9caeaea148a87ead02745aa0e9a57fc875d98 /net.c | |
parent | bb9ea79e7a177acce6f8017eef794662ee219c97 (diff) | |
download | qemu-5c8be678a912e3ce2a5289bfec981f98d3dd495f.zip qemu-5c8be678a912e3ce2a5289bfec981f98d3dd495f.tar.gz qemu-5c8be678a912e3ce2a5289bfec981f98d3dd495f.tar.bz2 |
monitor: Improve host_net_add (Jan Kiszka)
Fix the documentation of the host_net_add monitor command and allow the
user to pass no options at all. Moreover, inform the user on the
monitor terminal if a request failed.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7201 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2042,7 +2042,9 @@ void net_host_device_add(Monitor *mon, const char *device, const char *opts) monitor_printf(mon, "invalid host network device %s\n", device); return; } - net_client_init(device, opts); + if (net_client_init(device, opts ? : "") < 0) { + monitor_printf(mon, "adding host network device %s failed\n", device); + } } void net_host_device_remove(Monitor *mon, int vlan_id, const char *device) |