summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/mmc.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-01-29 09:27:50 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-02-29 11:02:56 +0100
commited9feec72fc1fa194ebfdb79e14561b35decce63 (patch)
tree5c18426ec2d9b592a0e0933b95c9c36041a0f13f /drivers/mmc/core/mmc.c
parent6067bafe44d7ce0fbbfe7aa3c463630e61d35237 (diff)
downloadop-kernel-dev-ed9feec72fc1fa194ebfdb79e14561b35decce63.zip
op-kernel-dev-ed9feec72fc1fa194ebfdb79e14561b35decce63.tar.gz
mmc: sanitize 'bus width' in debug output
The bus width is sometimes the actual bus width, and sometimes indices to different arrays encoding the bus width. In my debugging case "2" could mean 8-bit as well as 4-bit, which was extremly confusing. Let's use the human-readable actual bus width in all places. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc.c')
-rw-r--r--drivers/mmc/core/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 07a135b..4dbe3df 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -945,7 +945,7 @@ static int mmc_select_bus_width(struct mmc_card *card)
break;
} else {
pr_warn("%s: switch to bus width %d failed\n",
- mmc_hostname(host), ext_csd_bits[idx]);
+ mmc_hostname(host), 1 << bus_width);
}
}
OpenPOWER on IntegriCloud