]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: add some debug log to virNetDevGetMaster
authorLaine Stump <laine@laine.org>
Sun, 1 Jul 2018 23:27:17 +0000 (19:27 -0400)
committerLaine Stump <laine@laine.org>
Mon, 2 Jul 2018 22:58:22 +0000 (18:58 -0400)
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@laine.org>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c

index b250af9e2c107738e2262e3bd315e61ad6131bef..c20022fbc9477d6a978943412890fae270632ed9 100644 (file)
@@ -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);