mmc: replace printk with appropriate display macro
All the files using printk function for displaying kernel messages in the mmc driver have been replaced with corresponding macro. Signed-off-by: Girish K S <girish.shivananjappa@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
@@ -937,7 +937,7 @@ static int mmc_blk_err_check(struct mmc_card *card,
|
||||
do {
|
||||
int err = get_card_status(card, &status, 5);
|
||||
if (err) {
|
||||
printk(KERN_ERR "%s: error %d requesting status\n",
|
||||
pr_err("%s: error %d requesting status\n",
|
||||
req->rq_disk->disk_name, err);
|
||||
return MMC_BLK_CMD_ERR;
|
||||
}
|
||||
@@ -1187,7 +1187,7 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc)
|
||||
* were returned by the host controller, it's a bug.
|
||||
*/
|
||||
if (status == MMC_BLK_SUCCESS && ret) {
|
||||
printk(KERN_ERR "%s BUG rq_tot %d d_xfer %d\n",
|
||||
pr_err("%s BUG rq_tot %d d_xfer %d\n",
|
||||
__func__, blk_rq_bytes(req),
|
||||
brq->data.bytes_xfered);
|
||||
rqc = NULL;
|
||||
@@ -1467,7 +1467,7 @@ static int mmc_blk_alloc_part(struct mmc_card *card,
|
||||
|
||||
string_get_size((u64)get_capacity(part_md->disk) << 9, STRING_UNITS_2,
|
||||
cap_str, sizeof(cap_str));
|
||||
printk(KERN_INFO "%s: %s %s partition %u %s\n",
|
||||
pr_info("%s: %s %s partition %u %s\n",
|
||||
part_md->disk->disk_name, mmc_card_id(card),
|
||||
mmc_card_name(card), part_md->part_type, cap_str);
|
||||
return 0;
|
||||
@@ -1511,7 +1511,7 @@ mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card)
|
||||
mmc_release_host(card->host);
|
||||
|
||||
if (err) {
|
||||
printk(KERN_ERR "%s: unable to set block size to 512: %d\n",
|
||||
pr_err("%s: unable to set block size to 512: %d\n",
|
||||
md->disk->disk_name, err);
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -1613,7 +1613,7 @@ static int mmc_blk_probe(struct mmc_card *card)
|
||||
|
||||
string_get_size((u64)get_capacity(md->disk) << 9, STRING_UNITS_2,
|
||||
cap_str, sizeof(cap_str));
|
||||
printk(KERN_INFO "%s: %s %s %s %s\n",
|
||||
pr_info("%s: %s %s %s %s\n",
|
||||
md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
|
||||
cap_str, md->read_only ? "(ro)" : "");
|
||||
|
||||
|
Reference in New Issue
Block a user