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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux