From mboxrd@z Thu Jan 1 00:00:00 1970 From: xiangxia.m.yue@gmail.com Subject: [PATCH] igb_uio: change the irq print type. Date: Tue, 23 Jan 2018 08:17:34 -0800 Message-ID: <1516724254-109282-1-git-send-email-xiangxia.m.yue@gmail.com> Cc: dev@dpdk.org, Tonghao Zhang To: ferruh.yigit@intel.com Return-path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id 9EB131B172 for ; Tue, 23 Jan 2018 17:20:08 +0100 (CET) Received: by mail-pf0-f194.google.com with SMTP id k19so689471pfj.5 for ; Tue, 23 Jan 2018 08:20:08 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Tonghao Zhang The kernel uses the '%d' or '%ld' to print irq num. But igb_uio may use the '%lx', then the log may confuse the user what irq num has been used. The log is show as below. igb_uio 0000:00:03.0: irq 24 for MSI/MSI-X igb_uio 0000:00:03.0: uio device registered with irq 18 kernel version: 3.10.0-514.16.1.el7 For avoiding to be confused, change the igb_uio irq print type. Signed-off-by: Tonghao Zhang --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index a3a98c1..81e44b5 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -299,7 +299,7 @@ struct rte_uio_pci_dev { err = request_irq(udev->info.irq, igbuio_pci_irqhandler, udev->info.irq_flags, udev->info.name, udev); - dev_info(&udev->pdev->dev, "uio device registered with irq %lx\n", + dev_info(&udev->pdev->dev, "uio device registered with irq %ld\n", udev->info.irq); return err; -- 1.8.3.1