diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-07-19 13:06:09 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:16 -0400 |
commit | 289c05222172b51401dbbb017115655f241d94ab (patch) | |
tree | 1fd2c801102a8c4a085f75a08c766d3250491962 /drivers/mtd/nand/omap2.c | |
parent | d037021953922ebdbc34b98b8c4648017b1c6e89 (diff) |
mtd: replace DEBUG() with pr_debug()
Start moving away from the MTD_DEBUG_LEVEL messages. The dynamic
debugging feature is a generic kernel feature that provides more
flexibility.
(See Documentation/dynamic-debug-howto.txt)
Also fix some punctuation, indentation, and capitalization that went
along with the affected lines.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/nand/omap2.c')
-rw-r--r-- | drivers/mtd/nand/omap2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index c5e33fdcbc86..81e6bc0c9048 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -741,12 +741,12 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */ | |||
741 | 741 | ||
742 | case 1: | 742 | case 1: |
743 | /* Uncorrectable error */ | 743 | /* Uncorrectable error */ |
744 | DEBUG(MTD_DEBUG_LEVEL0, "ECC UNCORRECTED_ERROR 1\n"); | 744 | pr_debug("ECC UNCORRECTED_ERROR 1\n"); |
745 | return -1; | 745 | return -1; |
746 | 746 | ||
747 | case 11: | 747 | case 11: |
748 | /* UN-Correctable error */ | 748 | /* UN-Correctable error */ |
749 | DEBUG(MTD_DEBUG_LEVEL0, "ECC UNCORRECTED_ERROR B\n"); | 749 | pr_debug("ECC UNCORRECTED_ERROR B\n"); |
750 | return -1; | 750 | return -1; |
751 | 751 | ||
752 | case 12: | 752 | case 12: |
@@ -763,7 +763,7 @@ 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 | DEBUG(MTD_DEBUG_LEVEL0, "Correcting single bit ECC error at " | 766 | pr_debug("Correcting single bit ECC error at " |
767 | "offset: %d, bit: %d\n", find_byte, find_bit); | 767 | "offset: %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); |
@@ -776,7 +776,7 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */ | |||
776 | ecc_data2[2] == 0) | 776 | ecc_data2[2] == 0) |
777 | return 0; | 777 | return 0; |
778 | } | 778 | } |
779 | DEBUG(MTD_DEBUG_LEVEL0, "UNCORRECTED_ERROR default\n"); | 779 | pr_debug("UNCORRECTED_ERROR default\n"); |
780 | return -1; | 780 | return -1; |
781 | } | 781 | } |
782 | } | 782 | } |