mtd: nand: convert printk() to pr_*()
authorBrian Norris <computersforpeace@gmail.com>
Tue, 19 Jul 2011 17:06:07 +0000 (10:06 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:15 +0000 (15:02 +0300)
commit9a4d4d69018e7b719ba58fa30fcdd60e547776b8
treeba8268500b7abe8c61d3a77d7be7466e55f141bc
parenta0f5080ecc1c75f9c08591d9b0f48451e7ac8ddc
mtd: nand: convert printk() to pr_*()

Instead of directly calling printk, it's simpler to use the built-in
pr_* functions. This shortens code and allows easy customization through
the definition of a pr_fmt() macro (not used currently). Ideally, we
could implement much of this with dev_* functions, but the MTD subsystem
does not necessarily register all its master `mtd_info.dev` device, so
we cannot use dev_* consistently. See:
http://lists.infradead.org/pipermail/linux-mtd/2011-July/036950.html

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
This page took 0.033036 seconds and 5 git commands to generate.