summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHani Benhabiles2014-04-01 01:05:14 +0200
committerMichael Tokarev2014-04-18 08:33:36 +0200
commit86e117724a463b865accfd31eed383c2652c3d17 (patch)
treec9df979ee2dbd380953032e2ec5706ee2f687c5d
parentconfigure: Fix indentation of help for --enable/disable-debug-info (diff)
downloadqemu-86e117724a463b865accfd31eed383c2652c3d17.tar.gz
qemu-86e117724a463b865accfd31eed383c2652c3d17.tar.xz
qemu-86e117724a463b865accfd31eed383c2652c3d17.zip
net: Report error when device / hub combo is not found.
Also convert nearby monitor_printf() call to error_report(). Signed-off-by: Hani Benhabiles <hani@linux.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--net/net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index e3ef1e4f1d..a4aadffc11 100644
--- a/net/net.c
+++ b/net/net.c
@@ -952,10 +952,12 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict)
nc = net_hub_find_client_by_name(vlan_id, device);
if (!nc) {
+ error_report("Host network device '%s' on hub '%d' not found",
+ device, vlan_id);
return;
}
if (!net_host_check_device(nc->model)) {
- monitor_printf(mon, "invalid host network device %s\n", device);
+ error_report("invalid host network device '%s'", device);
return;
}
qemu_del_net_client(nc);