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>
This commit is contained in:
committed by
Artem Bityutskiy
parent
d037021953
commit
289c052221
@ -741,12 +741,12 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */
|
||||
|
||||
case 1:
|
||||
/* Uncorrectable error */
|
||||
DEBUG(MTD_DEBUG_LEVEL0, "ECC UNCORRECTED_ERROR 1\n");
|
||||
pr_debug("ECC UNCORRECTED_ERROR 1\n");
|
||||
return -1;
|
||||
|
||||
case 11:
|
||||
/* UN-Correctable error */
|
||||
DEBUG(MTD_DEBUG_LEVEL0, "ECC UNCORRECTED_ERROR B\n");
|
||||
pr_debug("ECC UNCORRECTED_ERROR B\n");
|
||||
return -1;
|
||||
|
||||
case 12:
|
||||
@ -763,7 +763,7 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */
|
||||
|
||||
find_bit = (ecc_bit[5] << 2) + (ecc_bit[3] << 1) + ecc_bit[1];
|
||||
|
||||
DEBUG(MTD_DEBUG_LEVEL0, "Correcting single bit ECC error at "
|
||||
pr_debug("Correcting single bit ECC error at "
|
||||
"offset: %d, bit: %d\n", find_byte, find_bit);
|
||||
|
||||
page_data[find_byte] ^= (1 << find_bit);
|
||||
@ -776,7 +776,7 @@ static int omap_compare_ecc(u8 *ecc_data1, /* read from NAND memory */
|
||||
ecc_data2[2] == 0)
|
||||
return 0;
|
||||
}
|
||||
DEBUG(MTD_DEBUG_LEVEL0, "UNCORRECTED_ERROR default\n");
|
||||
pr_debug("UNCORRECTED_ERROR default\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user