break;
len = (tag[2] << 8) | tag[1];
- vec_validate (data, len);
+ vec_alloc (data, len);
if (read (fd, data, len) != len)
{
if (ifr.ifr_flags & IFF_UP)
{
- error = clib_error_return (0, "Skipping PCI device %U as host "
- "interface %s is up",
- format_vlib_pci_addr, addr, e->d_name);
+ vlib_log (VLIB_LOG_LEVEL_WARNING, pci_main.log_default,
+ "Skipping PCI device %U as host "
+ "interface %s is up", format_vlib_pci_addr, addr,
+ e->d_name);
close (fd);
goto done;
}