]> xenbits.xensource.com Git - libvirt.git/commitdiff
virnetdev: Use ifname in virNetDevGetLinkInfo
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jun 2014 11:05:17 +0000 (13:05 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jun 2014 11:05:17 +0000 (13:05 +0200)
If we're compiling on non-Linux platform, the virNetDevGetLinkInfo()
is a dummy function which barely logs debug message that getting link
info is not supported. However, while the debug message was prepared
for printing the interface name too, I actually forgot to pass the
variable which resulted in build error on platforms like mingw or
FreeBSD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c

index cbf086e106ab2cbd824fcd993994b6ec8fc166f4..6f3a202d6ed2db22d84c7395937d5a3f70e99cd0 100644 (file)
@@ -1921,7 +1921,8 @@ virNetDevGetLinkInfo(const char *ifname,
                      virInterfaceLinkPtr lnk)
 {
     /* Port me */
-    VIR_DEBUG("Getting link info on %s is not implemented on this platform");
+    VIR_DEBUG("Getting link info on %s is not implemented on this platform",
+              ifname);
     lnk->speed = lnk->state = 0;
     return 0;
 }