Skip to contentSkip to conversation

NAND: S3C2410: Change printk() into dev_dbg()

PATCH Ben Dooks 1 participant 1 message May 20, 2008

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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.

drivers/mtd/nand/s3c2410.c +2 -1
Index: linux-2.6.26-rc3-quilt1/drivers/mtd/nand/s3c2410.c
===================================================================
@@ -691,7 +691,8 @@ static void s3c2410_nand_update_chip(str
 {
 	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
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'