mtd: s3c2410: Use pr_* instead of printk
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Sep 29 10:59:05 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=92aeb5d20c188fc7c28d7a5895a6b2f56038a2bd
Commit: 92aeb5d20c188fc7c28d7a5895a6b2f56038a2bd
Parent: 056fcab51c8a9e7735f5441efaa82d9201ac4d8d
Author: Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Mon Jul 16 16:02:23 2012 +0530
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 14:56:03 2012 +0100
mtd: s3c2410: Use pr_* instead of printk
Use pr_* instead of printk.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/s3c2410.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 8f9267f..3021b17 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define pr_fmt(fmt) "nand-s3c2410: " fmt
+
#ifdef CONFIG_MTD_NAND_S3C2410_DEBUG
#define DEBUG
#endif
@@ -215,7 +217,8 @@ static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max)
pr_debug("result %d from %ld, %d\n", result, clk, wanted);
if (result > max) {
- printk("%d ns is too big for current clock rate %ld\n", wanted, clk);
+ pr_err("%d ns is too big for current clock rate %ld\n",
+ wanted, clk);
return -1;
}
More information about the linux-mtd-cvs
mailing list