summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/sm_common.c
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2018-02-22 22:01:22 +0530
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-03-15 15:57:05 +0100
commit63fa37f0c512481bd942e84b596ad58e1d4c84e2 (patch)
treea7f0ba27374007e47d6d39de773c383b5c9cb6cb /drivers/mtd/nand/raw/sm_common.c
parent26777d37216c976cf6fd196700133a38aa2c4b0f (diff)
downloadop-kernel-dev-63fa37f0c512481bd942e84b596ad58e1d4c84e2.zip
op-kernel-dev-63fa37f0c512481bd942e84b596ad58e1d4c84e2.tar.gz
mtd: rawnand: Replace printk() with appropriate pr_*() macro
Using pr_<loglevel>() is more concise than printk(KERN_<LOGLEVEL>). Replace printks having a log level with the appropriate pr_*() macros. Define pr_fmt() and remove other additional macros from the replaced printks. Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/sm_common.c')
-rw-r--r--drivers/mtd/nand/raw/sm_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/raw/sm_common.c b/drivers/mtd/nand/raw/sm_common.c
index c378705..7f5044a 100644
--- a/drivers/mtd/nand/raw/sm_common.c
+++ b/drivers/mtd/nand/raw/sm_common.c
@@ -119,9 +119,8 @@ static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs)
ret = mtd_write_oob(mtd, ofs, &ops);
if (ret < 0 || ops.oobretlen != SM_OOB_SIZE) {
- printk(KERN_NOTICE
- "sm_common: can't mark sector at %i as bad\n",
- (int)ofs);
+ pr_notice("sm_common: can't mark sector at %i as bad\n",
+ (int)ofs);
return -EIO;
}
OpenPOWER on IntegriCloud