diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-13 10:29:39 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-13 10:29:39 +0200 |
commit | a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2 (patch) | |
tree | 1772ef47d98a68245c3d04d95637e5b9c1040904 /lib/fec/decode_rs.h | |
parent | 69aba72f0883c5effb5c3c2991d0c5257deb7409 (diff) | |
download | dabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.tar.gz dabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.tar.bz2 dabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.zip |
Pull in files from odr-mmbtools-common
Replace ASIO by simpler implementation, meaning that the telnet
RC now only supports a single connection.
Move Log, RC to lib/
Diffstat (limited to 'lib/fec/decode_rs.h')
-rw-r--r-- | lib/fec/decode_rs.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/fec/decode_rs.h b/lib/fec/decode_rs.h index 647b885..c165cf3 100644 --- a/lib/fec/decode_rs.h +++ b/lib/fec/decode_rs.h @@ -145,15 +145,15 @@ count++; } if (count != no_eras) { - fprintf(stderr, "count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras); + printf("count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras); count = -1; goto finish; } #if DEBUG >= 2 - fprintf(stderr, "\n Erasure positions as determined by roots of Eras Loc Poly:\n"); + printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n"); for (i = 0; i < count; i++) - fprintf(stderr, "%d ", loc[i]); - fprintf(stderr, "\n"); + printf("%d ", loc[i]); + printf("\n"); #endif #endif } @@ -227,7 +227,7 @@ continue; /* Not a root */ /* store root (index-form) and error location number */ #if DEBUG>=2 - fprintf(stderr, "count %d root %d loc %d\n",count,i,k); + printf("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) { - fprintf(stderr, "\n ERROR: denominator = 0\n"); + printf("\n ERROR: denominator = 0\n"); count = -1; goto finish; } |