All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: matt mooney <mfmooney@gmail.com>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and
Date: Wed, 11 May 2011 23:19:22 +0000	[thread overview]
Message-ID: <20110511231922.GD7362@kroah.com> (raw)
In-Reply-To: <BANLkTimBxkF4KbXfm7Ma8cmpDF9EPjfMWQ@mail.gmail.com>

On Wed, May 11, 2011 at 03:51:58PM -0700, matt mooney wrote:
> On Wed, May 11, 2011 at 2:06 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, May 11, 2011 at 01:54:16AM -0700, matt mooney wrote:
> >> This switches all of the non dev_<level> print statements to use the
> >> pr_<level> macros. And a few debug statements are removed.
> >
> > Can't most of these be moved to use the dev_* calls instead?
> 
> I believe so and had planned to do this is in a second pass.

Ah, you didn't say that :)

> >> Signed-off-by: matt mooney <mfm@muteddisk.com>
> >> ---
> >>  drivers/staging/usbip/stub_dev.c     |   22 ++--
> >>  drivers/staging/usbip/stub_main.c    |   19 ++--
> >>  drivers/staging/usbip/stub_rx.c      |   24 ++--
> >>  drivers/staging/usbip/stub_tx.c      |   16 ++--
> >>  drivers/staging/usbip/usbip_common.c |  228 +++++++++++++++------------------
> >>  drivers/staging/usbip/usbip_common.h |   46 +------
> >>  drivers/staging/usbip/usbip_event.c  |    3 +-
> >>  drivers/staging/usbip/vhci_hcd.c     |   87 +++++--------
> >>  drivers/staging/usbip/vhci_rx.c      |   33 +++---
> >>  drivers/staging/usbip/vhci_sysfs.c   |   14 +-
> >>  drivers/staging/usbip/vhci_tx.c      |    8 +-
> >>  11 files changed, 209 insertions(+), 291 deletions(-)
> >>
> >> diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c
> >> index c71d0a3..0c0d838 100644
> >> --- a/drivers/staging/usbip/stub_dev.c
> >> +++ b/drivers/staging/usbip/stub_dev.c
> >> @@ -196,7 +196,7 @@ static void stub_shutdown_connection(struct usbip_device *ud)
> >>        * step 1?
> >>        */
> >>       if (ud->tcp_socket) {
> >> -             usbip_udbg("shutdown tcp_socket %p\n", ud->tcp_socket);
> >> +             pr_debug("shutdown tcp_socket %p\n", ud->tcp_socket);
> >
> > Like here, we have a valid struct device pointer from what I can tell,
> > so we should use dev_dbg() instead of pr_debug().
> >
> > I think a lot of these conversions could use those calls here, right?
> >
> > So care to split this into 2 patches, one that converts to valid usages
> > of the dev_* calls, and the other a patch that converts the rest to pr_*
> > calls?
> 
> Do you mind just taking this as is for now? That way I can do the
> dev_dbg() conversion on a case by case basis as I become more familiar
> with the code, which was kind of my original plan. This patch still
> provides a fair amount of cleanup ;)

Yes it does, but I would prefer if you did it right the first time.
It's neater that way and makes more sense.

So, can you please redo this and resend it?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <greg@kroah.com>
To: matt mooney <mfmooney@gmail.com>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and printk with pr_ equivalent
Date: Wed, 11 May 2011 16:19:22 -0700	[thread overview]
Message-ID: <20110511231922.GD7362@kroah.com> (raw)
In-Reply-To: <BANLkTimBxkF4KbXfm7Ma8cmpDF9EPjfMWQ@mail.gmail.com>

On Wed, May 11, 2011 at 03:51:58PM -0700, matt mooney wrote:
> On Wed, May 11, 2011 at 2:06 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, May 11, 2011 at 01:54:16AM -0700, matt mooney wrote:
> >> This switches all of the non dev_<level> print statements to use the
> >> pr_<level> macros. And a few debug statements are removed.
> >
> > Can't most of these be moved to use the dev_* calls instead?
> 
> I believe so and had planned to do this is in a second pass.

Ah, you didn't say that :)

> >> Signed-off-by: matt mooney <mfm@muteddisk.com>
> >> ---
> >>  drivers/staging/usbip/stub_dev.c     |   22 ++--
> >>  drivers/staging/usbip/stub_main.c    |   19 ++--
> >>  drivers/staging/usbip/stub_rx.c      |   24 ++--
> >>  drivers/staging/usbip/stub_tx.c      |   16 ++--
> >>  drivers/staging/usbip/usbip_common.c |  228 +++++++++++++++------------------
> >>  drivers/staging/usbip/usbip_common.h |   46 +------
> >>  drivers/staging/usbip/usbip_event.c  |    3 +-
> >>  drivers/staging/usbip/vhci_hcd.c     |   87 +++++--------
> >>  drivers/staging/usbip/vhci_rx.c      |   33 +++---
> >>  drivers/staging/usbip/vhci_sysfs.c   |   14 +-
> >>  drivers/staging/usbip/vhci_tx.c      |    8 +-
> >>  11 files changed, 209 insertions(+), 291 deletions(-)
> >>
> >> diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c
> >> index c71d0a3..0c0d838 100644
> >> --- a/drivers/staging/usbip/stub_dev.c
> >> +++ b/drivers/staging/usbip/stub_dev.c
> >> @@ -196,7 +196,7 @@ static void stub_shutdown_connection(struct usbip_device *ud)
> >>        * step 1?
> >>        */
> >>       if (ud->tcp_socket) {
> >> -             usbip_udbg("shutdown tcp_socket %p\n", ud->tcp_socket);
> >> +             pr_debug("shutdown tcp_socket %p\n", ud->tcp_socket);
> >
> > Like here, we have a valid struct device pointer from what I can tell,
> > so we should use dev_dbg() instead of pr_debug().
> >
> > I think a lot of these conversions could use those calls here, right?
> >
> > So care to split this into 2 patches, one that converts to valid usages
> > of the dev_* calls, and the other a patch that converts the rest to pr_*
> > calls?
> 
> Do you mind just taking this as is for now? That way I can do the
> dev_dbg() conversion on a case by case basis as I become more familiar
> with the code, which was kind of my original plan. This patch still
> provides a fair amount of cleanup ;)

Yes it does, but I would prefer if you did it right the first time.
It's neater that way and makes more sense.

So, can you please redo this and resend it?

thanks,

greg k-h

  reply	other threads:[~2011-05-11 23:19 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11  8:54 [PATCH 00/12] staging: usbip: miscellaneous code cleanup matt mooney
2011-05-11  8:54 ` matt mooney
2011-05-11  8:54 ` [PATCH 01/12] staging: usbip: change debug configuration option matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 02/12] staging: usbip: use single version for all modules matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 03/12] staging: usbip: fix header includes matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11 21:07   ` Greg KH
2011-05-11 21:07     ` Greg KH
2011-05-11 22:54     ` matt mooney
2011-05-11 22:54       ` matt mooney
2011-05-11  8:54 ` [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and printk with pr_ equivalent matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11 21:06   ` [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and Greg KH
2011-05-11 21:06     ` [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and printk with pr_ equivalent Greg KH
2011-05-11 22:51     ` [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and matt mooney
2011-05-11 22:51       ` [PATCH 04/12] staging: usbip: replace usbip_u{dbg,err,info} and printk with pr_ equivalent matt mooney
2011-05-11 23:19       ` Greg KH [this message]
2011-05-11 23:19         ` Greg KH
2011-05-11  8:54 ` [PATCH 05/12] staging: usbip: remove unnecessary lines and extra return statements matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 06/12] staging: usbip: stub_main.c: code cleanup matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11 21:08   ` Greg KH
2011-05-11 21:08     ` Greg KH
2011-05-11 22:56     ` matt mooney
2011-05-11 22:56       ` matt mooney
2011-05-11  8:54 ` [PATCH 07/12] staging: usbip: stub_main.c: change __init/__exit prefix and use KMEM_CACHE matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 08/12] staging: usbip: usbip_common.c: fix misspelled function name matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 09/12] staging: usbip: edit Kconfig and rename CONFIG options matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11 21:09   ` [PATCH 09/12] staging: usbip: edit Kconfig and rename CONFIG Greg KH
2011-05-11 21:09     ` [PATCH 09/12] staging: usbip: edit Kconfig and rename CONFIG options Greg KH
2011-05-11  8:54 ` [PATCH 10/12] staging: usbip: stub.h: reorganize matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 11/12] staging: usbip: vhci.h: reorganize matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11  8:54 ` [PATCH 12/12] staging: usbip: usbip_common.h: reorganize and document request headers matt mooney
2011-05-11  8:54   ` matt mooney
2011-05-11 21:14 ` [PATCH 00/12] staging: usbip: miscellaneous code cleanup Greg KH
2011-05-11 21:14   ` Greg KH
2011-05-11 23:08   ` matt mooney
2011-05-11 23:08     ` matt mooney
2011-05-11 23:18     ` Greg KH
2011-05-11 23:18       ` Greg KH
2011-05-12  3:24       ` matt mooney
2011-05-12  3:24         ` matt mooney
2011-05-12  5:31         ` Greg KH
2011-05-12  5:31           ` Greg KH
2011-05-12  5:41           ` matt mooney
2011-05-12  5:41             ` matt mooney
2011-05-12 16:38             ` Greg KH
2011-05-12 16:38               ` Greg KH
2011-05-12  5:08 ` [PATCH 09/12 v2] staging: usbip: edit Kconfig and rename CONFIG options mfmooney
2011-05-12  5:08   ` mfmooney
2011-05-12  5:08 ` [PATCH 03/12 v2] staging: usbip: fix header includes mfmooney
2011-05-12  5:08   ` mfmooney
2011-05-12  5:17 ` [PATCH 09/12 v3] staging: usbip: edit Kconfig and rename CONFIG options mfmooney
2011-05-12  5:17   ` mfmooney
2011-05-12  5:32   ` [PATCH 09/12 v3] staging: usbip: edit Kconfig and rename CONFIG Greg KH
2011-05-12  5:32     ` [PATCH 09/12 v3] staging: usbip: edit Kconfig and rename CONFIG options Greg KH
2011-05-12  5:32     ` matt mooney
2011-05-12  5:32       ` matt mooney
2011-05-12 13:34 ` [PATCH 00/12] staging: usbip: miscellaneous code cleanup Matthew Wilcox
2011-05-12 13:34   ` Matthew Wilcox
2011-05-12 18:37   ` matt mooney
2011-05-12 18:37     ` matt mooney

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=20110511231922.GD7362@kroah.com \
    --to=greg@kroah.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfmooney@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.