mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: DaeSeok Youn <daeseok.youn@gmail.com>
Cc: Lidza Louina <lidza.louina@gmail.com>,
	devel <devel@driverdev.osuosl.org>,
	driverdev-devel@linuxdriverproject.org,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 6/8 V2] staging: dgap: remove unneeded dgap_err()
Date: Tue, 15 Jul 2014 16:50:58 -0700	[thread overview]
Message-ID: <20140715235058.GB32651@kroah.com> (raw)
In-Reply-To: <CAHb8M2B0EAjDr=yTfWQ_YsRcX9JumU8rUQ1mQeoqMWeBbY4gnQ@mail.gmail.com>

On Wed, Jul 16, 2014 at 08:21:30AM +0900, DaeSeok Youn wrote:
> Hi,
> 
> 2014-07-16 0:29 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
> > On Tue, Jul 15, 2014 at 06:11:44PM +0900, Daeseok Youn wrote:
> >> The dgap_err() is printing a message with pr_err(),
> >> so all those are replaced.
> >>
> >> Use definition "pr_fmt" and then all of "dgap:" in
> >> the beginning of print messages are removed.
> >>
> >> And also removed "out of memory" message because
> >> the kernel has own message for that.
> >>
> >> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> >> ---
> >> V2: use pr_fmt "dgap:" prefix on print message on dgap.
> >>     remove "out of memory" message.
> >>
> >>     Adds Mark to TO list and CC list for checking send
> >>     this email properly to him.
> >>
> >>  drivers/staging/dgap/dgap.c |  306 +++++++++++++++++++------------------------
> >>  1 files changed, 133 insertions(+), 173 deletions(-)
> >>
> >> diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
> >> index 06c55cb..9e750fb 100644
> >> --- a/drivers/staging/dgap/dgap.c
> >> +++ b/drivers/staging/dgap/dgap.c
> >> @@ -41,6 +41,8 @@
> >>   */
> >>  #undef DIGI_CONCENTRATORS_SUPPORTED
> >>
> >> +#define pr_fmt(fmt) "dgap: " fmt
> >> +
> >>  #include <linux/kernel.h>
> >>  #include <linux/module.h>
> >>  #include <linux/pci.h>
> >> @@ -153,7 +155,6 @@ static void dgap_firmware_reset_port(struct channel_t *ch);
> >>  static int dgap_gettok(char **in);
> >>  static char *dgap_getword(char **in);
> >>  static int dgap_checknode(struct cnode *p);
> >> -static void dgap_err(char *s);
> >>
> >>  /*
> >>   * Function prototypes from dgap_sysfs.h
> >> @@ -815,7 +816,7 @@ static struct board_t *dgap_found_board(struct pci_dev *pdev, int id,
> >>       if (ret)
> >>               goto free_brd;
> >>
> >> -     pr_info("dgap: board %d: %s (rev %d), irq %ld\n",
> >> +     pr_info("board %d: %s (rev %d), irq %ld\n",
> >>               boardnum, brd->name, brd->rev, brd->irq);
> >
> > Almost all of the pr_*() calls in this driver should be converted over
> > to use dev_*() calls instead.  And some of them, like this one, should
> > be removed entirely (no need for a driver to be "noisy" when a device
> > for it is found, it should be quiet if at all possible, unless something
> > went wrong.)
> >
> > So can you do that here instead?  I've applied the earlier patches in
> > this series, and stopped here.
> OK. I can. pr_*() calls are replaced with dev_*() calls.
> And also removes some of print message which are useless like "out
> of memory"

Yes, please do that, that would be great.

thanks,

greg k-h

  reply	other threads:[~2014-07-15 23:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15  9:11 Daeseok Youn
2014-07-15 15:29 ` Greg KH
2014-07-15 23:21   ` DaeSeok Youn
2014-07-15 23:50     ` Greg KH [this message]
2014-07-16  9:26       ` DaeSeok Youn
2014-07-16 18:47         ` Greg KH
2014-07-17  0:44           ` DaeSeok Youn
     [not found]       ` <1528743817.342205.1405502782038.JavaMail.root@mx2.compro.net>
2014-07-16 14:17         ` Mark Hounschell
2014-07-17  0:42           ` DaeSeok Youn
     [not found]           ` <1745620693.361299.1405557767206.JavaMail.root@mx2.compro.net>
2014-07-17 12:35             ` Mark Hounschell

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=20140715235058.GB32651@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=daeseok.youn@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=lidza.louina@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome