aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fec/decode_rs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2025-09-10 09:29:08 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2025-09-10 09:29:08 +0200
commitd30cf3e7c31f9299062b9ef85a0949e60611509f (patch)
tree5240c7127791c2226212722c02d95ea21652a943 /lib/fec/decode_rs.h
parent91531ce72ea4d90ea541f072da54bc46ef555db8 (diff)
parentb59516179a3e1842de95f8aef549a75dac1102c6 (diff)
downloaddabmux-d30cf3e7c31f9299062b9ef85a0949e60611509f.tar.gz
dabmux-d30cf3e7c31f9299062b9ef85a0949e60611509f.tar.bz2
dabmux-d30cf3e7c31f9299062b9ef85a0949e60611509f.zip
Merge commit 'b595161' into HEAD
Diffstat (limited to 'lib/fec/decode_rs.h')
-rw-r--r--lib/fec/decode_rs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/fec/decode_rs.h b/lib/fec/decode_rs.h
index c165cf3..647b885 100644
--- a/lib/fec/decode_rs.h
+++ b/lib/fec/decode_rs.h
@@ -145,15 +145,15 @@
count++;
}
if (count != no_eras) {
- printf("count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras);
+ fprintf(stderr, "count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras);
count = -1;
goto finish;
}
#if DEBUG >= 2
- printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");
+ fprintf(stderr, "\n Erasure positions as determined by roots of Eras Loc Poly:\n");
for (i = 0; i < count; i++)
- printf("%d ", loc[i]);
- printf("\n");
+ fprintf(stderr, "%d ", loc[i]);
+ fprintf(stderr, "\n");
#endif
#endif
}
@@ -227,7 +227,7 @@
continue; /* Not a root */
/* store root (index-form) and error location number */
#if DEBUG>=2
- printf("count %d root %d loc %d\n",count,i,k);
+ fprintf(stderr, "count %d root %d loc %d\n",count,i,k);
#endif
root[count] = i;
loc[count] = k;
@@ -279,7 +279,7 @@
}
#if DEBUG >= 1
if (den == 0) {
- printf("\n ERROR: denominator = 0\n");
+ fprintf(stderr, "\n ERROR: denominator = 0\n");
count = -1;
goto finish;
}