mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-15 15:46:16 +09:00
nand: omap_gpmc: Change correctable bit-flips messages to debug()
Messages on corrected bit-flips are not really useful, as bit-flips are perfectly normal. Let's avoid cluttering the console and make them debug. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
This commit is contained in:
parent
0219e4bfb4
commit
d1d0167663
|
@ -558,10 +558,10 @@ static int omap_correct_data_bch(struct mtd_info *mtd, uint8_t *dat,
|
||||||
bit_pos = error_loc[count] % 8;
|
bit_pos = error_loc[count] % 8;
|
||||||
if (byte_pos < SECTOR_BYTES) {
|
if (byte_pos < SECTOR_BYTES) {
|
||||||
dat[byte_pos] ^= 1 << bit_pos;
|
dat[byte_pos] ^= 1 << bit_pos;
|
||||||
printf("nand: bit-flip corrected @data=%d\n", byte_pos);
|
debug("nand: bit-flip corrected @data=%d\n", byte_pos);
|
||||||
} else if (byte_pos < error_max) {
|
} else if (byte_pos < error_max) {
|
||||||
read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos;
|
read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos;
|
||||||
printf("nand: bit-flip corrected @oob=%d\n", byte_pos -
|
debug("nand: bit-flip corrected @oob=%d\n", byte_pos -
|
||||||
SECTOR_BYTES);
|
SECTOR_BYTES);
|
||||||
} else {
|
} else {
|
||||||
err = -EBADMSG;
|
err = -EBADMSG;
|
||||||
|
@ -663,7 +663,7 @@ static int omap_correct_data_bch_sw(struct mtd_info *mtd, u_char *data,
|
||||||
/* correct data only, not ecc bytes */
|
/* correct data only, not ecc bytes */
|
||||||
if (errloc[i] < 8*512)
|
if (errloc[i] < 8*512)
|
||||||
data[errloc[i]/8] ^= 1 << (errloc[i] & 7);
|
data[errloc[i]/8] ^= 1 << (errloc[i] & 7);
|
||||||
printf("corrected bitflip %u\n", errloc[i]);
|
debug("corrected bitflip %u\n", errloc[i]);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
puts("read_ecc: ");
|
puts("read_ecc: ");
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user