Skip to contentSkip to conversation

net: Report error when device / hub combo is not found.

PATCH Applied Hani Benhabiles 2 participants 2 messages Mar 31, 2014 – Apr 6, 2014 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Report error when device / hub combo is not found.

Also convert nearby monitor_printf() call to error_report().

---
 net/net.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
net/net.c +3 -1
index e3ef1e4..d319f49 100644
@@ -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);
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 1 line · Hani Benhabiles

Also convert nearby monitor_printf() call to error_report().

Applied to -trivial, thank you!

/mjt