public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Dmitry Kasatkin <d.kasatkin@samsung.com>, sarah.a.sharp@linux.intel.com
Cc: linux-kernel@vger.kernel.org, sarah.a.sharp@linux.intel.com,
	dmitry.kasatkin@gmail.com
Subject: Re: [PATCH 2/2] xhci:prevent "callbacks suppressed" when debug is not enabled
Date: Thu, 15 Aug 2013 17:17:16 -0700	[thread overview]
Message-ID: <20130816001716.GA7367@kroah.com> (raw)
In-Reply-To: <70b3564625bbda6247cc5627041344fef8a762ae.1376582695.git.d.kasatkin@samsung.com>

On Thu, Aug 15, 2013 at 07:04:55PM +0300, Dmitry Kasatkin wrote:
> When debug is not enabled and dev_dbg() will expand to nothing,
> log might be flooded with "callbacks suppressed". If it was not
> done on purpose, better to use dev_dbg_ratelimited() instead.
> 
> Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
> ---
>  drivers/usb/host/xhci-ring.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)


Sarah, does this patch conflict with the trace debug patches being
worked on?  I'll hold off on applying it for now, let me know if it's ok
or not.

thanks,

greg k-h
> 
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index 5b08cd8..5298232 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -3060,8 +3060,7 @@ int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags,
>  	 * to set the polling interval (once the API is added).
>  	 */
>  	if (xhci_interval != ep_interval) {
> -		if (printk_ratelimit())
> -			dev_dbg(&urb->dev->dev, "Driver uses different interval"
> +		dev_dbg_ratelimited(&urb->dev->dev, "Driver uses different interval"
>  					" (%d microframe%s) than xHCI "
>  					"(%d microframe%s)\n",
>  					ep_interval,
> @@ -3849,8 +3848,7 @@ int xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags,
>  	 * to set the polling interval (once the API is added).
>  	 */
>  	if (xhci_interval != ep_interval) {
> -		if (printk_ratelimit())
> -			dev_dbg(&urb->dev->dev, "Driver uses different interval"
> +		dev_dbg_ratelimited(&urb->dev->dev, "Driver uses different interval"
>  					" (%d microframe%s) than xHCI "
>  					"(%d microframe%s)\n",
>  					ep_interval,
> -- 
> 1.8.1.2

  reply	other threads:[~2013-08-16  0:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 16:04 [PATCH 1/2] dev-core: fix build break when DEBUG is enabled Dmitry Kasatkin
2013-08-15 16:04 ` [PATCH 2/2] xhci:prevent "callbacks suppressed" when debug is not enabled Dmitry Kasatkin
2013-08-16  0:17   ` Greg KH [this message]
2013-08-16 17:26     ` Sarah Sharp
2013-08-16 17:30       ` Sarah Sharp
2013-08-16 17:37         ` Greg KH
2013-08-16 17:38         ` Dmitry Kasatkin
2013-08-16 17:45           ` Greg KH
2013-08-16 17:50             ` Sarah Sharp
2013-08-27 14:16             ` Dmitry Kasatkin
2013-08-27 17:39               ` Greg KH
2013-08-27 17:40                 ` Dmitry Kasatkin
2013-08-16 17:30       ` Greg KH
2013-08-16 17:38         ` Sarah Sharp
2013-08-16 17:42           ` Dmitry Kasatkin
2013-08-15 16:37 ` [PATCH 1/2] dev-core: fix build break when DEBUG is enabled Greg KH
2013-08-15 16:53   ` Dmitry Kasatkin
2013-08-15 17:11     ` Greg KH

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=20130816001716.GA7367@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=d.kasatkin@samsung.com \
    --cc=dmitry.kasatkin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sarah.a.sharp@linux.intel.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