From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=87rVJ8rcoKt324u/+FxpVPyjP1YLuEx93xbWvTHQW9E=; b=I0W9q3n/dPqb8jC7FAGxshLSDdrSEzbQBYdR3UpNQxQKMcyDcbB30ci18s5Z9G/mgI VYfO2GLpU2FSJtLvMitg/xSvTocBDxhfsI1IHWDGSHOx+Mk4b9m0FBwNAHvGG5ZYGU0h ezUBxgGgX2T/+mIl4hsSCUDUuXxYQTmAtJhPxmEnLzcVq1BDQ9vpJTYQInN5onobKPGy t10a4lUYpYNsVK116xNsh6UONTuA5SN0Ub7BU32UOppqIKljVNAZwnq9JQNJ8yyWby3k I9dC2U7uu4nqc3cd8Ru9m+gV7KX8fdAL43Vn8/eNZSP3gX+EDhQVUmkRQulgi6kYavDh f4IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=87rVJ8rcoKt324u/+FxpVPyjP1YLuEx93xbWvTHQW9E=; b=LHDTbHFfvINCiRJQl4WD8CydcF3FvJ5QXLiuXKjhhyjmTzrBUA8+m7V4PWDFCS7UtQ PvQZhUsCh7Ff10sXloreV85vvXI+RIUC2ZOHU4gB4qBWAkE4NAEu3l1AOhWOD4JolwWZ mJ/KS2PKxhDA1J0k0wQ0hQ/XkxDqlXstUJofOPdRR2BjZ8IvkXKzBS+sWM2ZBEqlVB5P nPQBQO7SSWpJ89glBoPHY0riVi1SER9HKWzKZBZhR4gr2sFLaSBJ5FniHe+xicyTOYWm BD3zMmbMt2B8aSeNVhI4Q0oDlrkCLHXcK4lCKisOwYgxd+imM+lsaG4kh/OPhrI3uzvf CMsQ== X-Gm-Message-State: AKwxytdukOFtT96CAdMvN28Q4pt6psG26HNRhMKyEbT98S6U91Kv4jAF sQN7iADsIsDg8NCl5FWYgWo= X-Google-Smtp-Source: AH8x227fvx7n29fRiMWMBFXhCtDlhhSiPmSgi+IHr+GT9iSi6SNCsF95MhlS5ma+J7zJPNuDdbkJ2w== X-Received: by 10.98.17.193 with SMTP id 62mr10801977pfr.126.1516724407702; Tue, 23 Jan 2018 08:20:07 -0800 (PST) Received: from local.opencloud.tech.localdomain ([120.5.46.21]) by smtp.gmail.com with ESMTPSA id x84sm6208547pfe.81.2018.01.23.08.20.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 08:20:07 -0800 (PST) From: xiangxia.m.yue@gmail.com To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Tonghao Zhang Date: Tue, 23 Jan 2018 08:17:34 -0800 Message-Id: <1516724254-109282-1-git-send-email-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] igb_uio: change the irq print type. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2018 16:20:08 -0000 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