]> Git Repo - qemu.git/commitdiff
net: Report error when device / hub combo is not found.
authorHani Benhabiles <[email protected]>
Mon, 31 Mar 2014 23:05:14 +0000 (00:05 +0100)
committerMichael Tokarev <[email protected]>
Fri, 18 Apr 2014 06:33:36 +0000 (10:33 +0400)
Also convert nearby monitor_printf() call to error_report().

Signed-off-by: Hani Benhabiles <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
net/net.c

index e3ef1e4f1d1c6d0cdc290182fd495cfbe4e0ff93..a4aadffc111553c22970d1d6337046694815856e 100644 (file)
--- 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);
This page took 0.023345 seconds and 4 git commands to generate.