From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Subject: Re: [PATCH V2] PCI: move early dump functionality from x86 arch into the common code To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, Kate Stewart , "open list:DOCUMENTATION" , Petr Tesarik , Ram Pai , Kai-Heng Feng , "H. Peter Anvin" , Boris Ostrovsky , Christoffer Dall , Jonathan Corbet , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , Ingo Molnar , David Rientjes , Thymo van Beers , Borislav Petkov , Tom Lendacky , Marc Zyngier , linux-arm-msm@vger.kernel.org, Frederic Weisbecker , Mikulas Patocka , Andy Lutomirski , Bjorn Helgaas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Juergen Gross , Dou Liyang , "Paul E. McKenney" , Greg Kroah-Hartman , open list , Philippe Ombredanne References: <1527878854-21419-1-git-send-email-okaya@codeaurora.org> <20180601185310.GA175802@bhelgaas-glaptop.roam.corp.google.com> From: Sinan Kaya Message-ID: Date: Fri, 1 Jun 2018 14:58:48 -0400 MIME-Version: 1.0 In-Reply-To: <20180601185310.GA175802@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 List-ID: On 6/1/2018 2:53 PM, Bjorn Helgaas wrote: >> + pci_info(pdev, "pci 0000:%02x:%02x.%d config space:\n", >> + pdev->bus->number, PCI_SLOT(pdev->devfn), >> + PCI_FUNC(pdev->devfn)); > I'm still missing something -- why go to the trouble of pdev->bus->number, > PCI_SLOT(), etc? Isn't the output going to look like this? > > pci 0000:00:00.0: pci 0000:00:00.0 config space: > > In other words, wouldn't the following be enough? > > pci_info(pdev, "config space:\n"); > You are right. The origin print function was pr_info. We don't need that stuff anymore. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.