mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virnetdev: Use ifname in virNetDevGetLinkInfo
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>
This commit is contained in:
parent
0311ef3d65
commit
3c43b6a7b2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user