mtd: mtdoops: change printk() to counterpart pr_ functions
authorRay Zhang <sgzhang@google.com>
Mon, 10 Oct 2022 04:55:47 +0000 (04:55 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 7 Nov 2022 16:07:59 +0000 (17:07 +0100)
commit43cfba56d312f0a45e0b3eaa63606e05ae7fac14
tree2cb5e27440ee97f49146b9d7678386941c3c840d
parent2df11f00100d7278185a9dbefa20ba3f5d32401d
mtd: mtdoops: change printk() to counterpart pr_ functions

To comply with latest kernel code requirement, change printk() to
counterpart pr_ functions in mtdoops driver:
- change printk(INFO) to pr_info()
- change printk(DEBUG) to pr_debug()
- change printk(WARNING) to pr_warn()
- change printk(ERR) to pr_err()

Note that only if dynamic debugging is enabled or DEBUG is defined,
printk(KERN_DEBUG) and pr_debug() are equivalent; Otherwise pr_debug()
is no-op, causing different behavior.

Signed-off-by: Ray Zhang <sgzhang@google.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221010045549.2221965-2-sgzhang@google.com
drivers/mtd/mtdoops.c