提交 facba917 编写于 作者: P Pierre Ossman

mmc: add missing printk levels

Some printk:s were missing an explicit level.
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 462f104b
...@@ -100,7 +100,7 @@ static int mmc_decode_cid(struct mmc_card *card) ...@@ -100,7 +100,7 @@ static int mmc_decode_cid(struct mmc_card *card)
break; break;
default: default:
printk("%s: card has unknown MMCA version %d\n", printk(KERN_ERR "%s: card has unknown MMCA version %d\n",
mmc_hostname(card->host), card->csd.mmca_vsn); mmc_hostname(card->host), card->csd.mmca_vsn);
return -EINVAL; return -EINVAL;
} }
...@@ -123,7 +123,7 @@ static int mmc_decode_csd(struct mmc_card *card) ...@@ -123,7 +123,7 @@ static int mmc_decode_csd(struct mmc_card *card)
*/ */
csd_struct = UNSTUFF_BITS(resp, 126, 2); csd_struct = UNSTUFF_BITS(resp, 126, 2);
if (csd_struct != 1 && csd_struct != 2) { if (csd_struct != 1 && csd_struct != 2) {
printk("%s: unrecognised CSD structure version %d\n", printk(KERN_ERR "%s: unrecognised CSD structure version %d\n",
mmc_hostname(card->host), csd_struct); mmc_hostname(card->host), csd_struct);
return -EINVAL; return -EINVAL;
} }
......
...@@ -149,7 +149,7 @@ static int mmc_decode_csd(struct mmc_card *card) ...@@ -149,7 +149,7 @@ static int mmc_decode_csd(struct mmc_card *card)
csd->write_partial = 0; csd->write_partial = 0;
break; break;
default: default:
printk("%s: unrecognised CSD structure version %d\n", printk(KERN_ERR "%s: unrecognised CSD structure version %d\n",
mmc_hostname(card->host), csd_struct); mmc_hostname(card->host), csd_struct);
return -EINVAL; return -EINVAL;
} }
...@@ -173,7 +173,7 @@ static int mmc_decode_scr(struct mmc_card *card) ...@@ -173,7 +173,7 @@ static int mmc_decode_scr(struct mmc_card *card)
scr_struct = UNSTUFF_BITS(resp, 60, 4); scr_struct = UNSTUFF_BITS(resp, 60, 4);
if (scr_struct != 0) { if (scr_struct != 0) {
printk("%s: unrecognised SCR structure version %d\n", printk(KERN_ERR "%s: unrecognised SCR structure version %d\n",
mmc_hostname(card->host), scr_struct); mmc_hostname(card->host), scr_struct);
return -EINVAL; return -EINVAL;
} }
...@@ -206,9 +206,8 @@ static int mmc_read_switch(struct mmc_card *card) ...@@ -206,9 +206,8 @@ static int mmc_read_switch(struct mmc_card *card)
status = kmalloc(64, GFP_KERNEL); status = kmalloc(64, GFP_KERNEL);
if (!status) { if (!status) {
printk("%s: could not allocate a buffer for switch " printk(KERN_ERR "%s: could not allocate a buffer for "
"capabilities.\n", "switch capabilities.\n", mmc_hostname(card->host));
mmc_hostname(card->host));
return err; return err;
} }
...@@ -254,9 +253,8 @@ static int mmc_switch_hs(struct mmc_card *card) ...@@ -254,9 +253,8 @@ static int mmc_switch_hs(struct mmc_card *card)
status = kmalloc(64, GFP_KERNEL); status = kmalloc(64, GFP_KERNEL);
if (!status) { if (!status) {
printk("%s: could not allocate a buffer for switch " printk(KERN_ERR "%s: could not allocate a buffer for "
"capabilities.\n", "switch capabilities.\n", mmc_hostname(card->host));
mmc_hostname(card->host));
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册