Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756620Ab1EKVOr (ORCPT ); Wed, 11 May 2011 17:14:47 -0400 Received: from kroah.org ([198.145.64.141]:59128 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755092Ab1EKVOq (ORCPT ); Wed, 11 May 2011 17:14:46 -0400 Date: Wed, 11 May 2011 14:06:39 -0700 From: Greg KH To: matt mooney 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 Message-ID: <20110511210639.GA4679@kroah.com> References: <0c3a71ba4811a3ab470d307650067e9c2b52379b.1305103212.git.mfm@muteddisk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c3a71ba4811a3ab470d307650067e9c2b52379b.1305103212.git.mfm@muteddisk.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2043 Lines: 50 On Wed, May 11, 2011 at 01:54:16AM -0700, matt mooney wrote: > This switches all of the non dev_ print statements to use the > pr_ macros. And a few debug statements are removed. Can't most of these be moved to use the dev_* calls instead? > > Signed-off-by: matt mooney > --- > 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? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/