Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9223
b: refs/heads/master
c: 66c81f0
h: refs/heads/master
i:
  9221: eab1ae0
  9219: 4aec745
  9215: a1ace4a
v: v3
  • Loading branch information
Grant Coady authored and Linus Torvalds committed Sep 23, 2005
1 parent 1099b33 commit 08417ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1e70a262d5cb5a02d2fc171e0178197849482d4
refs/heads/master: 66c81f0059b57e18aad43a5b0d330102c237cd72
8 changes: 4 additions & 4 deletions trunk/drivers/mtd/devices/docecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/doc2000.h>

#define DEBUG 0
#define DEBUG_ECC 0
/* need to undef it (from asm/termbits.h) */
#undef B0

Expand Down Expand Up @@ -249,7 +249,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
lambda[j] ^= Alpha_to[modnn(u + tmp)];
}
}
#if DEBUG >= 1
#if DEBUG_ECC >= 1
/* Test code that verifies the erasure locator polynomial just constructed
Needed only for decoder debugging. */

Expand All @@ -276,7 +276,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
count = -1;
goto finish;
}
#if DEBUG >= 2
#if DEBUG_ECC >= 2
printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");
for (i = 0; i < count; i++)
printf("%d ", loc[i]);
Expand Down Expand Up @@ -409,7 +409,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
}
if (den == 0) {
#if DEBUG >= 1
#if DEBUG_ECC >= 1
printf("\n ERROR: denominator = 0\n");
#endif
/* Convert to dual- basis */
Expand Down

0 comments on commit 08417ea

Please sign in to comment.