From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH v5 2/2] virtio: fix PCI config err handling Date: Tue, 28 Aug 2018 14:43:53 +0800 Message-ID: <20180828064353.GA80296@fbsd.sh.intel.com> References: <20180824171420.31246-1-bluca@debian.org> <20180827165240.28322-1-bluca@debian.org> <20180827165240.28322-2-bluca@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, maxime.coquelin@redhat.com, zhihong.wang@intel.com, bruce.richardson@intel.com, Brian Russell To: Luca Boccassi Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 43DC21D8A for ; Tue, 28 Aug 2018 08:46:13 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180827165240.28322-2-bluca@debian.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I just noticed the title. It should be "net/virtio: xxx", instead of "virtio: xxx". On Mon, Aug 27, 2018 at 05:52:40PM +0100, Luca Boccassi wrote: [...] > + ret = rte_pci_read_config(dev, &flags, sizeof(flags), > + pos + sizeof(cap)); > + if (ret != sizeof(flags)) { > + PMD_INIT_LOG(DEBUG, > + "failed to read pci cap at pos:" > + " %lx ret %d", pos + sizeof(cap), > + ret); In file included from drivers/net/virtio/virtio_pci.c:15:0: drivers/net/virtio/virtio_pci.c: In function ‘vtpci_msix_detect’: drivers/net/virtio/virtio_logs.h:13:3: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=] "%s(): " fmt "\n", __func__, ##args) ^ drivers/net/virtio/virtio_pci.c:737:5: note: in expansion of macro ‘PMD_INIT_LOG’ PMD_INIT_LOG(DEBUG, ^ cc1: all warnings being treated as errors I got above build issues in 32bit build. Apart from that, Reviewed-by: Tiwei Bie Thanks!