diff mbox series

[02/11] Debug failure to find device during requery

Message ID 0aceb8d1aede12b3d946ae67a9ae5850faba9667.1587059210.git.weeksd2@rpi.edu
State New
Headers show
Series IB netboot 1/3: flexible hwaddrs | expand

Commit Message

Daniel M. Weeks April 16, 2020, 5:54 p.m. UTC
This should never happen. If it does, it likely indicates a bug where
network device UUIDs and hardware addresses are not treated/parsed the
same way.

Signed-off-by: Daniel M. Weeks <weeksd2@rpi.edu>
---
 discover/network.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/discover/network.c b/discover/network.c
index 6457f9e..041367f 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -508,8 +508,10 @@  void network_requery_device(struct network *network,
 	struct interface *interface;
 
 	interface = find_interface_by_uuid(network, dev->uuid);
-	if (!interface)
+	if (!interface) {
+		pb_debug("Unable to find %s to requery\n", dev->uuid);
 		return;
+	}
 
 	if (interface->udhcpc_process) {
 		interface->udhcpc_process->exit_cb = NULL;