Skip to content

Commit

Permalink
mmc: sdio: Change pr_warning to pr_warn_ratelimited
Browse files Browse the repository at this point in the history
When debugging one bad issue, got lots of pr_warning messages
"queuing unknown CIS tuple" which caused a printk storm and
flooded the console.

This patch changes the pr_warning to use pr_warn_ratelimited.

Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Liu Chuansheng authored and Chris Ball committed Jul 22, 2012
1 parent a39ca6a commit aa6439d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/sdio_cis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa6439d

Please sign in to comment.