[MTD] [NAND] S3C2410: Change printk() into dev_dbg()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Jun 4 13:59:04 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=451d33993b13174d27474ad2ce7a2f10ce2e31ad
Commit:     451d33993b13174d27474ad2ce7a2f10ce2e31ad
Parent:     2e3c22f57029ce04d55c07b8332ae405005456d9
Author:     Ben Dooks <ben-linux at fluff.org>
AuthorDate: Tue May 20 17:32:14 2008 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Jun 4 18:00:58 2008 +0100

    [MTD] [NAND] S3C2410: Change printk() into dev_dbg()
    
    Fix a minor problem with what should have been
    debug output by changing printk() to dev_dbg()
    inside s3c2410_nand_update_chip().
    
    Thanks to David Woodhouse for pointing this out.
    
    Signed-off-by: Ben Dooks <ben-linux at fluff.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/nand/s3c2410.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 91f42e4..c9726bd 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -689,7 +689,8 @@ static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info,
 {
 	struct nand_chip *chip = &nmtd->chip;
 
-	printk("%s: chip %p: %d\n", __func__, chip, chip->page_shift);
+	dev_dbg(info->device, "chip %p => page shift %d\n",
+		chip, chip->page_shift);
 
 	if (hardware_ecc) {
 		/* change the behaviour depending on wether we are using



More information about the linux-mtd-cvs mailing list