mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: 412574090@163.com
To: dlemoal@kernel.org
Cc: 412574090@163.com, James.Bottomley@HansenPartnership.com,
	andreas@gaisler.com, andrew+netdev@lunn.ch, cassel@kernel.org,
	davem@davemloft.net, deller@gmx.de, edumazet@google.com,
	linux-kernel@vger.kernel.org, martin.petersen@oracle.co,
	mpe@ellerman.id.au, ojeda@kernel.org, perex@perex.cz,
	sudipm.mukherjee@gmail.com, t.sailer@alumni.ethz.ch,
	weiyufeng@kylinos.cn, xiongxin@kylinos.cn
Subject: Re: [PATCH v2 1/4] parport: use standard kernel printing functions
Date: Mon, 18 Nov 2024 10:30:24 +0800	[thread overview]
Message-ID: <20241118023024.22287-1-412574090@163.com> (raw)
In-Reply-To: <39c7413a-aa51-4fb2-b949-3f4e3a53839f@kernel.org>

> On 11/12/24 11:11, 412574090@163.com wrote:
> > From: weiyufeng <weiyufeng@kylinos.cn>
> > 
> > change printk to standard kernel printing functions.
> > 
> > Signed-off-by: weiyufeng <weiyufeng@kylinos.cn>
> > ---
> >  drivers/net/hamradio/baycom_epp.c |  8 ++++----
> >  drivers/net/hamradio/baycom_par.c |  6 +++---
> >  drivers/parport/parport_pc.c      | 12 ++++++------
> >  drivers/parport/procfs.c          |  2 +-
>
> This is mixing changes for different drivers. Please split the net and ata part
> into different patches and send the net ones to the correct list and maintainers.
Yes, it will be updated in v3 version. Can you help review the patch for
path2-patch4? If possible, it would be a great honor.
>
> >  4 files changed, 14 insertions(+), 14 deletions(-)
> 
> > diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
> > index 9e366f275406..1b7fd6d49a96 100644
> > --- a/drivers/net/hamradio/baycom_epp.c
> > +++ b/drivers/net/hamradio/baycom_epp.c
> > @@ -828,13 +828,13 @@ static int epp_open(struct net_device *dev)
> >          }
> >  #if 0
> >          if (pp->irq < 0) {
> > -                printk(KERN_ERR "%s: parport at 0x%lx has no irq\n", bc_drvname, pp->base);
> > +		pr_err("%s: parport at 0x%lx has no irq\n", bc_drvname, pp->base);
> >  		parport_put_port(pp);
> >                  return -ENXIO;
> >          }
> >  #endif
> >  	if ((~pp->modes) & (PARPORT_MODE_TRISTATE | PARPORT_MODE_PCSPP | PARPORT_MODE_SAFEININT)) {
> > -                printk(KERN_ERR "%s: parport at 0x%lx cannot be used\n",
> > +		pr_err("%s: parport at 0x%lx cannot be used\n",
> >  		       bc_drvname, pp->base);
> >  		parport_put_port(pp);
> >                  return -EIO;
> > @@ -857,11 +857,11 @@ static int epp_open(struct net_device *dev)
> >  	bc->pdev = parport_register_dev_model(pp, dev->name, &par_cb, i);
> >  	parport_put_port(pp);
> >          if (!bc->pdev) {
> > -                printk(KERN_ERR "%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base);
> > +		pr_err("%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base);
> >                  return -ENXIO;
> >          }
> >          if (parport_claim(bc->pdev)) {
> > -                printk(KERN_ERR "%s: parport at 0x%lx busy\n", bc_drvname, pp->base);
> > +		pr_err("%s: parport at 0x%lx busy\n", bc_drvname, pp->base);
> >                  parport_unregister_device(bc->pdev);
> >                  return -EBUSY;
> >          }
> > diff --git a/drivers/net/hamradio/baycom_par.c b/drivers/net/hamradio/baycom_par.c
> > index 00ebc25d0b22..4b57874c2463 100644
> > --- a/drivers/net/hamradio/baycom_par.c
> > +++ b/drivers/net/hamradio/baycom_par.c
> > @@ -307,12 +307,12 @@ static int par96_open(struct net_device *dev)
> >  		return -ENXIO;
> >  	}
> >  	if (pp->irq < 0) {
> > -		printk(KERN_ERR "baycom_par: parport at 0x%lx has no irq\n", pp->base);
> > +		pr_err("baycom_par: parport at 0x%lx has no irq\n", pp->base);
> >  		parport_put_port(pp);
> >  		return -ENXIO;
> >  	}
> >  	if ((~pp->modes) & (PARPORT_MODE_PCSPP | PARPORT_MODE_SAFEININT)) {
> > -		printk(KERN_ERR "baycom_par: parport at 0x%lx cannot be used\n", pp->base);
> > +		pr_err("baycom_par: parport at 0x%lx cannot be used\n", pp->base);
> >  		parport_put_port(pp);
> >  		return -ENXIO;
> >  	}
> > @@ -339,7 +339,7 @@ static int par96_open(struct net_device *dev)
> >  		return -ENXIO;
> >  	}
> >  	if (parport_claim(bc->pdev)) {
> > -		printk(KERN_ERR "baycom_par: parport at 0x%lx busy\n", pp->base);
> > +		pr_err("baycom_par: parport at 0x%lx busy\n", pp->base);
> >  		parport_unregister_device(bc->pdev);
> >  		return -EBUSY;
> >  	}
> > diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
> > index f33b5d1ddfc1..609c10d4bc31 100644
> > --- a/drivers/parport/parport_pc.c
> > +++ b/drivers/parport/parport_pc.c
> > @@ -1609,7 +1609,7 @@ static int parport_ECP_supported(struct parport *pb)
> >  
> >  	priv->fifo_depth = i;
> >  	if (verbose_probing)
> > -		printk(KERN_DEBUG "0x%lx: FIFO is %d bytes\n", pb->base, i);
> > +		pr_debug("0x%lx: FIFO is %d bytes\n", pb->base, i);
> >  
> >  	/* Find out writeIntrThreshold */
> >  	frob_econtrol(pb, 1<<2, 1<<2);
> > @@ -1623,7 +1623,7 @@ static int parport_ECP_supported(struct parport *pb)
> >  
> >  	if (i <= priv->fifo_depth) {
> >  		if (verbose_probing)
> > -			printk(KERN_DEBUG "0x%lx: writeIntrThreshold is %d\n",
> > +			pr_debug("0x%lx: writeIntrThreshold is %d\n",
> >  			       pb->base, i);
> >  	} else
> >  		/* Number of bytes we know we can write if we get an
> > @@ -1676,16 +1676,16 @@ static int parport_ECP_supported(struct parport *pb)
> >  	priv->pword = pword;
> >  
> >  	if (verbose_probing) {
> > -		printk(KERN_DEBUG "0x%lx: PWord is %d bits\n",
> > +		pr_debug("0x%lx: PWord is %d bits\n",
> >  		       pb->base, 8 * pword);
> >  
> > -		printk(KERN_DEBUG "0x%lx: Interrupts are ISA-%s\n",
> > +		pr_debug("0x%lx: Interrupts are ISA-%s\n",
> >  		       pb->base, config & 0x80 ? "Level" : "Pulses");
> >  
> >  		configb = inb(CONFIGB(pb));
> > -		printk(KERN_DEBUG "0x%lx: ECP port cfgA=0x%02x cfgB=0x%02x\n",
> > +		pr_debug("0x%lx: ECP port cfgA=0x%02x cfgB=0x%02x\n",
> >  		       pb->base, config, configb);
> > -		printk(KERN_DEBUG "0x%lx: ECP settings irq=", pb->base);
> > +		pr_debug("0x%lx: ECP settings irq=", pb->base);
> >  		if ((configb >> 3) & 0x07)
> >  			pr_cont("%d", intrline[(configb >> 3) & 0x07]);
> >  		else
> > diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
> > index 3880460e67f2..3f809fff317b 100644
> > --- a/drivers/parport/procfs.c
> > +++ b/drivers/parport/procfs.c
> > @@ -128,7 +128,7 @@ static int do_hardware_base_addr(const struct ctl_table *table, int write,
> >  	if (write) /* permissions prevent this anyway */
> >  		return -EACCES;
> >  
> > -	len += scnprintf (buffer, sizeof(buffer), "%lu\t%lu\n", port->base, port->base_hi);
> > +	len += scnprintf(buffer, sizeof(buffer), "%lu\t%lu\n", port->base, port->base_hi);
> >  
> >  	if (len > *lenp)
> >  		len = *lenp;
--
Thanks,

weiyufeng


  reply	other threads:[~2024-11-18  2:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12  2:11 [PATCH v2 0/4] add new iomem type for parport devcie 412574090
2024-11-12  2:11 ` [PATCH v2 1/4] parport: use standard kernel printing functions 412574090
2024-11-12  5:03   ` Damien Le Moal
2024-11-18  2:30     ` 412574090 [this message]
2024-11-18 12:29       ` Niklas Cassel
2024-11-12  2:11 ` [PATCH v2 2/4] parport: change struct parport member to iobase 412574090
2024-11-12  2:11 ` [PATCH v2 3/4] parport: add parport_data struct 412574090
2024-11-12  2:11 ` [PATCH v2 4/4] parport: add iomem type for parport 412574090

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241118023024.22287-1-412574090@163.com \
    --to=412574090@163.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=andreas@gaisler.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=cassel@kernel.org \
    --cc=davem@davemloft.net \
    --cc=deller@gmx.de \
    --cc=dlemoal@kernel.org \
    --cc=edumazet@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.petersen@oracle.co \
    --cc=mpe@ellerman.id.au \
    --cc=ojeda@kernel.org \
    --cc=perex@perex.cz \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=t.sailer@alumni.ethz.ch \
    --cc=weiyufeng@kylinos.cn \
    --cc=xiongxin@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®