mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: YAMANE Toshiaki <yamanetoshi@gmail.com>
Cc: Greg Kroah-Hartman <greg@kroah.com>,
	Ian Abbott <ian.abbott@mev.co.uk>,
	Frank Mori Hess <fmhess@users.sourceforge.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging/comedi: Use dev_ printks in drivers/adl_pci8164.c
Date: Fri, 5 Oct 2012 10:15:59 +0100	[thread overview]
Message-ID: <506EA54F.1020807@mev.co.uk> (raw)
In-Reply-To: <1349395666-6010-1-git-send-email-yamanetoshi@gmail.com>

On 2012-10-05 01:07, YAMANE Toshiaki wrote:
> fixed below checkpatch warning.
> - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
>
> Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
> ---
>   drivers/staging/comedi/drivers/adl_pci8164.c |   12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/adl_pci8164.c b/drivers/staging/comedi/drivers/adl_pci8164.c
> index 05e06e7..6dbe465 100644
> --- a/drivers/staging/comedi/drivers/adl_pci8164.c
> +++ b/drivers/staging/comedi/drivers/adl_pci8164.c
> @@ -89,9 +89,9 @@ static void adl_pci8164_insn_read(struct comedi_device *dev,
>   	}
>
>   	data[0] = inw(dev->iobase + axis_reg + offset);
> -	printk(KERN_DEBUG "comedi: pci8164 %s read -> "
> -						  "%04X:%04X on axis %s\n",
> -				action, data[0], data[1], axisname);
> +	dev_dbg(dev->class_dev,
> +		  "comedi: pci8164 %s read -> %04X:%04X on axis %s\n",
> +		  action, data[0], data[1], axisname);
>   }

The "comedi: " prefix is superfluous, so should be removed.  The 
dev_dbg() call will emit the word "comedi" twice already without the 
extra prefix.

>
>   static int adl_pci8164_insn_read_msts(struct comedi_device *dev,
> @@ -170,9 +170,9 @@ static void adl_pci8164_insn_out(struct comedi_device *dev,
>
>   	outw(data[0], dev->iobase + axis_reg + offset);
>
> -	printk(KERN_DEBUG "comedi: pci8164 %s write -> "
> -						"%04X:%04X on axis %s\n",
> -				action, data[0], data[1], axisname);
> +	dev_dbg(dev->class_dev,
> +		  "comedi: pci8164 %s write -> %04X:%04X on axis %s\n",
> +		  action, data[0], data[1], axisname);
>
>   }

Same here.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

  reply	other threads:[~2012-10-05  9:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05  0:07 YAMANE Toshiaki
2012-10-05  9:15 ` Ian Abbott [this message]
2012-10-05  9:36   ` Toshiaki Yamane
2012-10-06  5:32 ` YAMANE Toshiaki

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=506EA54F.1020807@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=fmhess@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=ian.abbott@mev.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yamanetoshi@gmail.com \
    /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®