diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-07-19 13:06:10 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:16 -0400 |
commit | 0a32a10264d151bc2d1616d69edaf915aa728698 (patch) | |
tree | b31eeb9c6c177fc58c848c6a993f961ea2506858 /drivers/mtd/nand | |
parent | 289c05222172b51401dbbb017115655f241d94ab (diff) |
mtd: cleanup style on pr_debug messages
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 6 | ||||
-rw-r--r-- | drivers/mtd/nand/nand_bch.c | 4 | ||||
-rw-r--r-- | drivers/mtd/nand/omap2.c | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 2fbfb71c237b..ebeb84316ecd 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -349,8 +349,7 @@ static void wait_op_done(struct mxc_nand_host *host, int useirq) | |||
349 | udelay(1); | 349 | udelay(1); |
350 | } | 350 | } |
351 | if (max_retries < 0) | 351 | if (max_retries < 0) |
352 | pr_debug("%s: INT not set\n", | 352 | pr_debug("%s: INT not set\n", __func__); |
353 | __func__); | ||
354 | } | 353 | } |
355 | } | 354 | } |
356 | 355 | ||
@@ -386,8 +385,7 @@ static void send_cmd_v1_v2(struct mxc_nand_host *host, uint16_t cmd, int useirq) | |||
386 | udelay(1); | 385 | udelay(1); |
387 | } | 386 | } |
388 | if (max_retries < 0) | 387 | if (max_retries < 0) |
389 | pr_debug("%s: RESET failed\n", | 388 | pr_debug("%s: RESET failed\n", __func__); |
390 | __func__); | ||
391 | } else { | 389 | } else { |
392 | /* Wait for operation to complete */ | 390 | /* Wait for operation to complete */ |
393 | wait_op_done(host, useirq); | 391 | wait_op_done(host, useirq); |
diff --git a/drivers/mtd/nand/nand_bch.c b/drivers/mtd/nand/nand_bch.c index 16cca9b99052..3803e0bba23b 100644 --- a/drivers/mtd/nand/nand_bch.c +++ b/drivers/mtd/nand/nand_bch.c | |||
@@ -93,8 +93,8 @@ int nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, | |||
93 | buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); | 93 | buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); |
94 | /* else error in ecc, no action needed */ | 94 | /* else error in ecc, no action needed */ |
95 | 95 | ||
96 | pr_debug("%s: corrected bitflip %u\n", | 96 | pr_debug("%s: corrected bitflip %u\n", __func__, |
97 | __func__, errloc[i]); | 97 | errloc[i]); |
98 | } | 98 | } |
99 | } else if (count < 0) { | 99 | } else if (count < 0) { |
100 | printk(KERN_ERR "ecc unrecoverable error\n"); | 100 | printk(KERN_ERR "ecc unrecoverable error\n"); |
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 81e6bc0c9048..19b283f2c80c 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -763,8 +763,8 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */ | |||
763 | 763 | ||
764 | find_bit = (ecc_bit[5] << 2) + (ecc_bit[3] << 1) + ecc_bit[1]; | 764 | find_bit = (ecc_bit[5] << 2) + (ecc_bit[3] << 1) + ecc_bit[1]; |
765 | 765 | ||
766 | pr_debug("Correcting single bit ECC error at " | 766 | pr_debug("Correcting single bit ECC error at offset: " |
767 | "offset: %d, bit: %d\n", find_byte, find_bit); | 767 | "%d, bit: %d\n", find_byte, find_bit); |
768 | 768 | ||
769 | page_data[find_byte] ^= (1 << find_bit); | 769 | page_data[find_byte] ^= (1 << find_bit); |
770 | 770 | ||