[libvirt] [PATCH 2/3] util: add some debug log to virNetDevGetMaster

Laine Stump laine at laine.org
Sun Jul 1 23:46:57 UTC 2018


This makes it easier to see why libvirt has decided it must re-attach
a tap device to its bridge.

Signed-off-by: Laine Stump <laine at laine.org>
---
 src/util/virnetdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c
index b250af9e2c..c20022fbc9 100644
--- a/src/util/virnetdev.c
+++ b/src/util/virnetdev.c
@@ -977,6 +977,7 @@ virNetDevGetMaster(const char *ifname, char **master)
             goto cleanup;
     }
 
+    VIR_DEBUG("IFLA_MASTER for %s is %s", ifname, *master ? *master : "(none)");
     ret = 0;
  cleanup:
     VIR_FREE(nlData);
-- 
2.14.4




More information about the libvir-list mailing list