Skip to content

Commit

Permalink
[MMC] Use controller id instead of driver name for printks
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Pierre Ossman authored and Russell King committed Nov 5, 2005
1 parent 25cc5e5 commit d191634
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/mmc/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void wbsd_reset(struct wbsd_host* host)
{
u8 setup;

printk(KERN_ERR DRIVER_NAME ": Resetting chip\n");
printk(KERN_ERR "%s: Resetting chip\n", mmc_hostname(host->mmc));

/*
* Soft reset of chip (SD/MMC part).
Expand Down Expand Up @@ -880,8 +880,9 @@ static void wbsd_finish_data(struct wbsd_host* host, struct mmc_data* data)
*/
if (count)
{
printk(KERN_ERR DRIVER_NAME ": Incomplete DMA "
"transfer. %d bytes left.\n", count);
printk(KERN_ERR "%s: Incomplete DMA transfer. "
"%d bytes left.\n",
mmc_hostname(host->mmc), count);

data->error = MMC_ERR_FAILED;
}
Expand Down Expand Up @@ -1169,8 +1170,8 @@ static void wbsd_tasklet_card(unsigned long param)

if (host->mrq)
{
printk(KERN_ERR DRIVER_NAME
": Card removed during transfer!\n");
printk(KERN_ERR "%s: Card removed during transfer!\n",
mmc_hostname(host->mmc));
wbsd_reset(host);

host->mrq->cmd->error = MMC_ERR_FAILED;
Expand Down

0 comments on commit d191634

Please sign in to comment.