On Mon, 22 Jun 2020 10:55:22 +0300 tal...@mellanox.com wrote:

[snip]
> @@ -176,10 +177,10 @@ pci_unmap_resource(void *requested_addr, size_t size)
>               return;
>  
>       /* Unmap the PCI memory resource of device */
> -     if (munmap(requested_addr, size)) {
> -             RTE_LOG(ERR, EAL, "%s(): cannot munmap(%p, %#zx): %s\n",
> +     if (rte_mem_unmap(requested_addr, size)) {
> +             RTE_LOG(ERR, EAL, "%s(): cannot mem unmap(%p, %#zx): %s\n",
>                       __func__, requested_addr, size,
> -                     strerror(errno));
> +                     rte_strerror(errno));

errno -> rte_errno

-- 
Dmitry Kozlyuk

Reply via email to