diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-10-13 11:37:04 +0200 |
---|---|---|
committer | Benoît Ganne <bganne@cisco.com> | 2021-10-13 11:59:33 +0200 |
commit | 57cc4bc4ccba635fe5b125d59dc563cd7718413a (patch) | |
tree | d662cfa6d71fffc978065d42b08875be3dd6444d /src/vlib/linux/vmbus.c | |
parent | ac4e61205dcf365396ca44941ad055c7bd88c631 (diff) |
vlib: fix vmbus error log
struct dirent *e is freed when calling closedir(). Use ifname instead.
Type: fix
Change-Id: Icc9ca52c33ecc1dee7a9e28802149e4e3e4c8ac0
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vlib/linux/vmbus.c')
-rw-r--r-- | src/vlib/linux/vmbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vlib/linux/vmbus.c b/src/vlib/linux/vmbus.c index d50b539910b..12813651d4c 100644 --- a/src/vlib/linux/vmbus.c +++ b/src/vlib/linux/vmbus.c @@ -284,9 +284,9 @@ vlib_vmbus_bind_to_uio (vlib_vmbus_addr_t * addr) if (ifr.ifr_flags & IFF_UP) { - error = clib_error_return (0, - "Skipping VMBUS device %U as host interface %s is up", - format_vlib_vmbus_addr, addr, e->d_name); + error = clib_error_return ( + 0, "Skipping VMBUS device %U as host interface %s is up", + format_vlib_vmbus_addr, addr, ifname); close (fd); goto done; } |