* [PATCH] sdio: Change pr_warning to pr_warn_ratelimited
@ 2012-06-14 10:49 Liu, Chuansheng
2012-07-09 10:29 ` Chris Ball
0 siblings, 1 reply; 2+ messages in thread
From: Liu, Chuansheng @ 2012-06-14 10:49 UTC (permalink / raw)
To: linux-kernel, linux-mmc
Cc: cjb,
Yanmin Zhang <yanmin_zhang@linux.intel.com>
(yanmin_zhang@linux.intel.com)
From: liu chuansheng <chuansheng.liu@intel.com>
Subject: [PATCH] sdio: Change pr_warning to pr_warn_ratelimited
When debug one bad issue, got lots of pr_warning messages
"queuing unknown CIS tuple" which caused the printk storm
and flooded the console.
This patch is changing the pr_warning api to pr_warn_ratelimited.
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
---
drivers/mmc/core/sdio_cis.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c
index f1c7ed8..8e94e55 100644
--- a/drivers/mmc/core/sdio_cis.c
+++ b/drivers/mmc/core/sdio_cis.c
@@ -313,7 +313,7 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
if (ret == -ENOENT) {
/* warn about unknown tuples */
- pr_warning("%s: queuing unknown"
+ pr_warn_ratelimited("%s: queuing unknown"
" CIS tuple 0x%02x (%u bytes)\n",
mmc_hostname(card->host),
tpl_code, tpl_link);
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sdio: Change pr_warning to pr_warn_ratelimited
2012-06-14 10:49 [PATCH] sdio: Change pr_warning to pr_warn_ratelimited Liu, Chuansheng
@ 2012-07-09 10:29 ` Chris Ball
0 siblings, 0 replies; 2+ messages in thread
From: Chris Ball @ 2012-07-09 10:29 UTC (permalink / raw)
To: Liu, Chuansheng
Cc: linux-kernel, linux-mmc,
Yanmin Zhang <yanmin_zhang@linux.intel.com>
(yanmin_zhang@linux.intel.com)
Hi,
On Thu, Jun 14 2012, Liu, Chuansheng wrote:
> From: liu chuansheng <chuansheng.liu@intel.com>
> Subject: [PATCH] sdio: Change pr_warning to pr_warn_ratelimited
>
> When debug one bad issue, got lots of pr_warning messages
> "queuing unknown CIS tuple" which caused the printk storm
> and flooded the console.
>
> This patch is changing the pr_warning api to pr_warn_ratelimited.
>
> Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
> ---
> drivers/mmc/core/sdio_cis.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c
> index f1c7ed8..8e94e55 100644
> --- a/drivers/mmc/core/sdio_cis.c
> +++ b/drivers/mmc/core/sdio_cis.c
> @@ -313,7 +313,7 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
>
> if (ret == -ENOENT) {
> /* warn about unknown tuples */
> - pr_warning("%s: queuing unknown"
> + pr_warn_ratelimited("%s: queuing unknown"
> " CIS tuple 0x%02x (%u bytes)\n",
> mmc_hostname(card->host),
> tpl_code, tpl_link);
Thanks, pushed to mmc-next for 3.6.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-09 10:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14 10:49 [PATCH] sdio: Change pr_warning to pr_warn_ratelimited Liu, Chuansheng
2012-07-09 10:29 ` Chris Ball
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