From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH 4/7] virtio: fix build with debug enabled Date: Tue, 3 Mar 2015 16:23:47 +0100 Message-ID: <1425396230-13379-5-git-send-email-thomas.monjalon@6wind.com> References: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1425396230-13379-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" With CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=3Dy: error: =E2=80=98devname=E2=80=99 undeclared (first use in this function) Fixes: da978dfdc43b ("virtio: use port IO to get PCI resource") Signed-off-by: Thomas Monjalon --- lib/librte_pmd_virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virti= o/virtio_ethdev.c index 4bad1e4..d239083 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -971,7 +971,7 @@ static int virtio_resource_init_by_uio(struct rte_pci= _device *pci_dev) pci_dev->intr_handle.fd =3D open(dirname, O_RDWR); if (pci_dev->intr_handle.fd < 0) { PMD_INIT_LOG(ERR, "Cannot open %s: %s\n", - devname, strerror(errno)); + dirname, strerror(errno)); return -1; } =20 --=20 2.2.2