From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E40642588 for ; Wed, 13 Sep 2023 10:45:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74192402E9; Wed, 13 Sep 2023 10:45:23 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 1F53D4027E; Wed, 13 Sep 2023 10:45:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694594720; x=1726130720; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=q/8vd3kqTy+8hgWmqbyggI5eC3eTIfoUwEE1hL3lZBQ=; b=c+d69DcUExxRHgNhWi9ZscN8PMfychu3nSbPF+/qRak83Smtq9NDRvV6 OCw6zfYqSzmX2nliLDDiHOuRPFQRyTPJZg3nkbP71LCahhX5FdZf2cfDp Eahhi+77GrIW9+i0VGabuWYSdmNeg/S7XnVVTpfjv08u42J8q2vJCqI2S B/nTH49F+2/EMWePinm+ZOlxlY1cCC5wYm2Byd3ueXPnqH546VuMq8CAw d8uBVAkNv3kKfgYOpHXjzpCZ8KbduZF3hiFmlEWCvbL43WKiCYLV1jB9O SwPUaerCLJaMDq1J5V0/1Y4bz1af+ZBrn9iES92239czeVJru18+RjdTu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="358035544" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="358035544" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 01:45:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="990840998" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="990840998" Received: from dpdk-qiming3.sh.intel.com ([10.67.110.238]) by fmsmga006.fm.intel.com with ESMTP; 13 Sep 2023 01:45:12 -0700 From: Qiming Yang To: dev@dpdk.org Cc: Qiming Yang , stable@dpdk.org Subject: [PATCH] bus/pci: fix device ID print Date: Wed, 13 Sep 2023 08:23:33 +0000 Message-Id: <20230913082333.1056156-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This patch fixes the issue where device id first 0 does not print. Fixes: e4f27af0f448 ("bus/pci: reduce boot-up logs to absolute minimum") Cc: stable@dpdk.org Signed-off-by: Qiming Yang --- drivers/bus/pci/pci_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c index 52404ab0fe..6605d0647d 100644 --- a/drivers/bus/pci/pci_common.c +++ b/drivers/bus/pci/pci_common.c @@ -304,7 +304,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr, } } - RTE_LOG(INFO, EAL, "Probe PCI driver: %s (%x:%x) device: "PCI_PRI_FMT" (socket %i)\n", + RTE_LOG(INFO, EAL, "Probe PCI driver: %s (%x:%04x) device: "PCI_PRI_FMT" (socket %i)\n", dr->driver.name, dev->id.vendor_id, dev->id.device_id, loc->domain, loc->bus, loc->devid, loc->function, dev->device.numa_node); -- 2.25.1