diff mbox

cxl: Fix typo in debug print

Message ID 1434604510.2942.33.camel@neuling.org (mailing list archive)
State Accepted
Commit f293106917f6d1538c9c7779a632c2ab904a756b
Delegated to: Michael Ellerman
Headers show

Commit Message

Michael Neuling June 18, 2015, 5:15 a.m. UTC
Fix typo in debug print.  p1->p2.  No functional change.

Signed-off-by: Michael Neuling <mikey@neuling.org>

Comments

Ian Munsie June 18, 2015, 5:30 a.m. UTC | #1
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Michael Ellerman June 18, 2015, 5:57 a.m. UTC | #2
On Thu, 2015-06-18 at 15:15 +1000, Michael Neuling wrote:
> Fix typo in debug print.  p1->p2.  No functional change.

That's not "no functional change", it changes the behaviour, unless p2_base()
implements the same logic as p1_base()?

cheers

> diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
> index 1ef0164..8515791 100644
> --- a/drivers/misc/cxl/pci.c
> +++ b/drivers/misc/cxl/pci.c
> @@ -204,7 +204,7 @@ static void dump_cxl_config_space(struct pci_dev *dev)
>  	dev_info(&dev->dev, "p1 regs: %#llx, len: %#llx\n",
>  		p1_base(dev), p1_size(dev));
>  	dev_info(&dev->dev, "p2 regs: %#llx, len: %#llx\n",
> -		p1_base(dev), p2_size(dev));
> +		p2_base(dev), p2_size(dev));
>  	dev_info(&dev->dev, "BAR 4/5: %#llx, len: %#llx\n",
>  		pci_resource_start(dev, 4), pci_resource_len(dev, 4));
>  
> 
>
Michael Neuling June 18, 2015, 6:12 a.m. UTC | #3
On Thu, 2015-06-18 at 15:57 +1000, Michael Ellerman wrote:
> On Thu, 2015-06-18 at 15:15 +1000, Michael Neuling wrote:
> > Fix typo in debug print.  p1->p2.  No functional change.
> 
> That's not "no functional change", it changes the behaviour, unless p2_base()
> implements the same logic as p1_base()?

Maybe I should change it to "Only debug output printing change"?

Mikey

> 
> cheers
> 
> > diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
> > index 1ef0164..8515791 100644
> > --- a/drivers/misc/cxl/pci.c
> > +++ b/drivers/misc/cxl/pci.c
> > @@ -204,7 +204,7 @@ static void dump_cxl_config_space(struct pci_dev *dev)
> >  	dev_info(&dev->dev, "p1 regs: %#llx, len: %#llx\n",
> >  		p1_base(dev), p1_size(dev));
> >  	dev_info(&dev->dev, "p2 regs: %#llx, len: %#llx\n",
> > -		p1_base(dev), p2_size(dev));
> > +		p2_base(dev), p2_size(dev));
> >  	dev_info(&dev->dev, "BAR 4/5: %#llx, len: %#llx\n",
> >  		pci_resource_start(dev, 4), pci_resource_len(dev, 4));
> >  
> > 
> > 
> 
> 
> 
>
diff mbox

Patch

diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 1ef0164..8515791 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -204,7 +204,7 @@  static void dump_cxl_config_space(struct pci_dev *dev)
 	dev_info(&dev->dev, "p1 regs: %#llx, len: %#llx\n",
 		p1_base(dev), p1_size(dev));
 	dev_info(&dev->dev, "p2 regs: %#llx, len: %#llx\n",
-		p1_base(dev), p2_size(dev));
+		p2_base(dev), p2_size(dev));
 	dev_info(&dev->dev, "BAR 4/5: %#llx, len: %#llx\n",
 		pci_resource_start(dev, 4), pci_resource_len(dev, 4));