aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/wbsd.c
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2005-11-05 05:36:35 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-05 05:36:35 -0500
commitd191634f7ab3a1c8e9da0c5e986c30b2612f0eb0 (patch)
tree2d25afa843cb1781db65c1920bcd2ec3a977265e /drivers/mmc/wbsd.c
parent25cc5e5bd20e9274dddb9d1e55b83798363528dc (diff)
[MMC] Use controller id instead of driver name for printks
The printks that aren't for debugging should use the name of the controller, not the driver name. Multiple MMC controllers aren't that common today, but this is the right way to do things. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/wbsd.c')
-rw-r--r--drivers/mmc/wbsd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/mmc/wbsd.c b/drivers/mmc/wbsd.c
index ea0c4b3361bf..4ff67e7363d9 100644
--- a/drivers/mmc/wbsd.c
+++ b/drivers/mmc/wbsd.c
@@ -201,7 +201,7 @@ static void wbsd_reset(struct wbsd_host* host)
201{ 201{
202 u8 setup; 202 u8 setup;
203 203
204 printk(KERN_ERR DRIVER_NAME ": Resetting chip\n"); 204 printk(KERN_ERR "%s: Resetting chip\n", mmc_hostname(host->mmc));
205 205
206 /* 206 /*
207 * Soft reset of chip (SD/MMC part). 207 * Soft reset of chip (SD/MMC part).
@@ -880,8 +880,9 @@ static void wbsd_finish_data(struct wbsd_host* host, struct mmc_data* data)
880 */ 880 */
881 if (count) 881 if (count)
882 { 882 {
883 printk(KERN_ERR DRIVER_NAME ": Incomplete DMA " 883 printk(KERN_ERR "%s: Incomplete DMA transfer. "
884 "transfer. %d bytes left.\n", count); 884 "%d bytes left.\n",
885 mmc_hostname(host->mmc), count);
885 886
886 data->error = MMC_ERR_FAILED; 887 data->error = MMC_ERR_FAILED;
887 } 888 }
@@ -1169,8 +1170,8 @@ static void wbsd_tasklet_card(unsigned long param)
1169 1170
1170 if (host->mrq) 1171 if (host->mrq)
1171 { 1172 {
1172 printk(KERN_ERR DRIVER_NAME 1173 printk(KERN_ERR "%s: Card removed during transfer!\n",
1173 ": Card removed during transfer!\n"); 1174 mmc_hostname(host->mmc));
1174 wbsd_reset(host); 1175 wbsd_reset(host);
1175 1176
1176 host->mrq->cmd->error = MMC_ERR_FAILED; 1177 host->mrq->cmd->error = MMC_ERR_FAILED;